Combined the Pattern Tracker with the GLUT main loop