Something seems to be wrong with this game. When I declined to promote my pawn, the promotion options keep showing up for both players. I did have to modify the promotion options from the generated code to get them the way I wanted, but it all seemed to be working before.
I figured the problem was that it was running askpromote at the wrong time. It should run when a move has just been entered, but it should not run when a move has not been entered. To fix this, I modified it to do nothing if the $moves string is empty, and the game you linked to now works correctly.
I figured the problem was that it was running askpromote at the wrong time. It should run when a move has just been entered, but it should not run when a move has not been entered. To fix this, I modified it to do nothing if the $moves string is empty, and the game you linked to now works correctly.