Creating a decision tree agent