Refactored block rotation.

Block data rotation pending.