implemented updateForce for Gravity