Two-way DFS implemented
5-rules Checker done
one simple dfs