generates game state