fixing game state flow