Rearrange code to seperate out main loop from vision file. Introduce concept of Detector objects which need not be vision based.