Game Behaviour Tree implementation in C++