Added algorithm to determine where grounded units can move