I couldn't reproduce this bug, so I made it so that the game ends when a king is captured
Alrighty, thank youu