added a new optional parameter to GetClosestToMouse which may include friendly units