update paint range and unitDetection

units can now be determined by clicking on any of the sprites in the
unit.

paint range works right for everything but diagonals