updated the logic
Merge pull request #2 from leungmanhin/master

Updated behavior tree