Compressing a gas in a fire piston