Implemented rotation of cube on all possibilities