solved open labyrinth with bfs