a simple behaviour tree library for lua ported from javascript