game ends if player wins