finding endpoints of lines by projecting point onto line and
comparing. added qualification to lines that there be a pixel
of ___ color in at least 1 of the 8 spaces around start of end
of the line.