Building have defined building positions (buildingPos).
Buildings are always flat, the terrain surface is not.
Some buildings have their buildingPos under the terrain surface.
If an AI attempts to reach a building position that is under the terrain surface, they can become stuck in an eternal loop attempting to reach the building position.
They typically end up walking in a small circle on terrain surface over the building position.
AI should move as close to the building position as possible, then stop.
AI should be able to recognise when they are stuck in an eternal movement loop.