direction is now limited to 0:360

-But it will only work if direction is set in range -360 to infinity.
The negative part is a problem. If a user sets direction = -4000, then
direction will be -40, which is incorrect. I can't find a way to do this
without a loop.