The AI car has 3 layers of sensory data. Total 9 parts of data. There are 3 sensors (left front, right front, and front) and they each collect 3 important bits of data. Using color coding, we have 3 layers. If the outermost layer is being touched but not the rest, then we turn ever so slightly. (Or slow down) If the middle layer is being touched then we take a normal turn. (Or slow down faster) If the inner layer is being touched then a sharp turn is taken. (Or slow down VERY fast) M for max speed (4.3 is best)
SPACE FOR NEXT TRACK Just something I whipped up, not too important but please give credit if you use it. This is made using clones Stabilized some code. Now the car should move a little more smoothly. I also made the max speed up to a high 4.5 px per loop! And I reduced some lag if and when the car hits the grass. If the car hits the grass, just press the green flag!