surrounded regeions dfs runtime error