Fixed a mistake that caused player winnings to be "reset" when the game ends