Labyrinth solving using Dijkstra. click = wall/empty