Fixed a big bug in resetting the game