Try ending the game when player 1 has more points, then ending the game when player 2 has more points. Notice how different code runs when different scores are higher.