add dfs
add isLabirinthImpossible