C# DFS problem - Solved