Fixed problem "peaking" adjacent UnitType selection
-If the unit on the far left was selected and user moved left, some of the
-selected unit's color would still be visible
-Also added some helper functions to clean code up a bit
-Generally cleaned up code