turn() and update() changes

added boundary checking to turn() functions to keep direction < 360 & >
0