Fix maze initialization bug
Fixed visit errors