use rectangle class to determine if unit is within box select