Started to implement behaviour tree.