A close examination of the motion of an adiabatic piston