Make AI max distance configurable