finalised an implementation of creating a decision tree from a strategy.