Yes the whole maze is procedurally generated, this is a simple way to do it:
I made some tweaks to it though, to make it more maze like.
Also, I just remembered, by my calculations, it should take over an hour to finish the game... because of the procedural generation, it may take as little as 20 minutes or as much as over an hour.