Updated recursive dfs method and removed old code

All methods should work and code should be ready to be submitted