made distance() use x and y values rather than entire unit arrays, added validate_destination(), randomized destination for overlapping units
made distance() use x and y values rather than entire unit arrays, added validate_destination(), randomized destination for overlapping units

iterami/RTS-2D.htm,iterami/RTS-2D.htm