cleaned up maze generation, still crashes