It's either my broken English or ChatGPT couldn't fit the idea of what should happen after some constraint is fulfilled in the code. Luckily it keeps context, so with a follow-up question, I could ask for a modification. Still, this is not what I wanted.