Added AI wander distance restriction