Union-Find maze creator