10946 is a floodfill or DFS problem that doesn't count diagonals