Initial prototype code for color identification, still buggy and slow