Implementation of the Behavior Tree concept in Ruby