DFS: Connected Cell in a Grid