Creating a behavior tree agent