fixed errors in maze generation
fixed bug with duplicate edges being printed