Code Works on 6 cubes!