Current state update method called from game loop.