Refactored cube rotations.