added a tree data structure to make drawing easier
Finished the tree visualizer.