new rules required, searching for the nearest unit from a given tile.