maze algorithm. still not perfect
moved to bin