slight adjustment to make a true depth first maze