Updates the obstacle y position.
Applying physics to player.
Applies physics to player and obstacles.