You speak of pistons coming out of cylinders and also returning to the cylinders, but in a real engine, the pistons always remain in the cylinders. The pistons move from one extreme position in the cylinder to a second extreme position (again, in the cylinder). What causes your piston to cycle...