Machines with more than one piston in a cylinder and with counter moving pistons