Fixed Generation Bug

Fixed a bug where the maze generation algorithm would not complete.
Previously unrealized, hacked a fix. Now when the bug happens it will
take twice as long to generate a maze with a very low risk of performing
two bugged generations in a row.