finished decision tree class, but not quite right

Need way of finding optimal split better, as well as the split cuttoff.
Need way of finding what terminal node value should be.