Creates a maze using primm's algorithm