saving state for a specific game

Fixing a bug where the state is not saved for a specific game,
e.g., if you first play TicTacToe and then load another game it will
cause an error.