Generates a maze of given x and y size.