Added smarter maze generating algorithm