added the most logic of the rubix cube