@FOXBOX
i guess its too late...but still,
suppose the gas at pressure P applies force on the piston .then
PA-friction=ma.where A is area and m is mass of piston,a is its acceleration.
as m=0,f=0 implies PA=0,P=0 and no force is required to move piston.W=0.
AND piston doesn't gain...