added out of boudns check when selecting units in party view