Not working, theoretical solution to lesson 5
Cleanup bitmask rotation logic