Finished update logic.

Every GameObject's update function is called just before each frame.