parsing game state