This is the foundation for the procedural maze generation system in my game OMNIRIS. The maze now logs tile locations as it generates, and the maze can be regenerated from that log at any time by pressing "t".
Thanks to Griffpatch for the original design, and huge thanks to knightbolt for the project that I used as a base for this one.