failed logic for generating maze