Would have been easier to use the Wolfram Function Repository function RandomLabyrinth -- it gives graphs for created labyrinth's walls, paths, and solution. Also, (much prettier) hexagonal grid labyrinths/mazes could be used.
(And, yes, shameless plug...)