Behavior Tree implementation in Objective-C