Effect of pressure on gas particles in a piston chamber