Changes made to player update method to create smoother movement.