game state update.