player acceleration and deceleration