Cubes with 2 and 3 rows movement

Now Cubes with 2 and 3 rows move automatically. Will need  to make it
so that the cubes are being pushed automatically.
Working on pushing cubes

Trying to make so that system pushes cubes with different row lenght
into the system.