This may have actually been my bad: once chatGPT gave me what I asked for, I would think about it some more and tweak the code manually, especially if it was a low-effort edit. Consequently there will perhaps be some bugs: I’ll fix this one, thanks for sharing!
I hope you do play it for a positive number of rounds though :)