(Below are two codes. The code on top was the final code that had greater accuracy and was simpler, while the code on the bottom was the original code that had a lesser success rate that we used that made the robot run into walls before finding the rest of the course. We decided to include both codes in our website to show our process that allowed us to come up with our final code.)
Link "variation.c" under "Course" heading