code cleanup
DFS solver works