JSON serialization of the game state