Fixed division in color detection method - was integer division, needed
floating point.