My code seems to only let player 2 win I am not sure what I need to change : I have human player and and random player. 
The humanplayer is an input and the random player just plays a random move. I play them against each other and the player 2 always wins I am not sure what is missing. I have tried mutlpe things. I have tried editing the beats fucntion but I need that for the hw. They gave us that in the starter code. 

I am thinking it has something to do with the players 

this is a link to the code. https://codeshare.io/aY9KPM

