Added a function to determine whether a unit can stop in a given tile.