Removed DFS and placed it in its own file