Placing cubes in Rows