Added multithreaded tree-based AI