iterate contacting 6 cubes for each cube
fix index range error and print iterating cube