undefined solve
simplify
we're now solving, but not very well
graph should take care of nodes visited
remove unused function