made rotate error checks be 3 seperate if's instead of a single one with &&'s.  All signs point to problem fixed, assuming i am not as good with logical operations as i thought.