fix maze generation and visualization