My hypothesis : A gas in a container, when expands exerts a force on the piston(freely moving and frictionless piston)[F1] and the piston would thus exert an equal and opposite force on the gas[F2] this force will travel all the way to the other end of the container and this will push the ground whose normal force will nullify the force. Thus the piston moves up. If the container-piston apparatus was kept horizontally instead of being kept vertically then the same would have been observed but the role of normal force would be played by friction between the container and the ground. This thus leads to the conclusion that the piston cannot be moved when forces like these are absent. Therefore, a gas in a container cannot move the piston up in the outer space.
Is this hypothesis correct? If no, then why not? Please explain with an example.