Added a different approach to recognizing colors. Tweaking still needed.