2 player war card game

I finally managed to get the 2 player card game to work… well sort of, I still have trouble with the fact that the cards when changed count the value of the other one before it is changed, so the score isn’t kept correctly, any advice?

so it happens just before the next round? you might need to switch up your code a bit then