It looks like what's happening is once it decides it needs to turn left, it just keeps going left til it winds up within +- seven degrees. What it could do instead is, if it's turned left too far and should be turning right now, stop turning left, and similar for the other side. Also, the test for >...