majorily refactored the rubiks-cube rotation code which greatly simplified the code