There are a bunch of really intelligent looking behaviors from insects, but they seem to have a common theme of "storing" information in the environment. There is a hornet that will sweep and search its nest when it brings food back, but first it will place the food down. If you move the food while the search is going on, it will do the whole search over again when it goes out searching for food. The intelligent behavior seems to be tightly coupled with the environment. Maybe the hole is enough to break some assumptions with the ants.