for java implementation of a rubik's cube