Updating game state.