Hello
I just started to code a Chess Game project with Pygame. It's my first time on it. But after 5 minutes, I already got a problem : when i execute my script a window is opened but when I click on the <X> (integrated to the OS) to close the window, I get this error : https://paste.pythondiscord.com/4CGQ.
Information : I'm on Mac M1 with the latest MacOS version.
My source code : https://paste.pythondiscord.com/HT3A
Thanks by advance