Implementing game.reset function.