Currently failing attempt to get ternary branching tree working