War (Puzzle) Issues

My code currently passes all the test challenges except the long games, no idea if is my code or the test challenges.

26 cards, medium length

I got 1 44
It expected 1 52

Sorry but it’s your code… Perhaps too loop…

the fprintf is not displayed in this chalenge