My SDL2 window opens and closes immediately. But the code still runs.
Here’s a link to the Github page with my code: https://github.com/chrismp/tic-tac-toe
And here’s the git repo itself if you want to clone it https://github.com/chrismp/tic-tac-toe.git
Why does the window close, but the code still runs in the while
loop?