It happend when I was holding space and the window popped up, closed itself and then the game crashed, maybe u used loops, causing a infinite loop, not sure tho
I tried to recreate the problem, but the game didn't froze for me. Must be something I might be missing. But anyways, thanks for the feedback. I will have this issue in my mind when later fixing this game :)