Chapter 4 work through

Rotation code isn't working. Logic broken somewhere li:138