Allowed AI to rotate both clockwise and counterclockwise.

The original implementation of the basic AI ignored negative (counterclockwise) rotations.