Solved Circuts, DFS with some tweaks