fixed maze generation

also fixed bug that would cause rgud to occasionally generate graphs
with incorrect degrees