added major functionality for the game (logic for determining which space to choose, game resetting when finished)