DFS

check four directions