Box Factory solutions

Box Factory was solved using Groovy by 1 contestant. Solution sizes: average 3602 bytes (shortest: 3309; longest: 3895).