fixed grayscale vs. RGB problems, now detects color space
for the most part got edge walking and corner detection, added more box checks