chagned variable names, debugged, rewrote part of the traverse, and visualized the results.