Added Devon's code, which has the enhancement of the basic structure for the 4-step polling process once the robot has recognized a tuple (this polling process' purpose is to avoid using interrupts when passing control between IR sensors, encoders, AI, and encoders again).