They’re deliberately miserable to encourage trail-and-error. A new tray will spawn when you deliver the previous tray correctly. You typically only need to produce one of each kind of thing, not handle multiple iterations in a loop. The difficulty with Food Court isn’t optimizing a programming solution, it’s figuring out how it works in the first place and then fitting your construction within the space allowed.
It appears to be 8 different mini-games. (Not all of them are games.) Part of the fun is discovering what the hell, so I won’t go into huge detail. All of the games are unique and interesting, most of them Zack-like twists on existing formulas, e.g. the first one you’ll encounter is an interesting Klondike variant. The meta-game stuff is also interesting and effective and not something I’ve seen done before.