ai re-implemented using simplified behaviour trees