added a load state and allowed the game state to be saved when switching between menu and playing