maze generator bug fixed