operate an array of Rubik's cubes