Dumb Question - Global variable not holding value on change

Nope the declared as int eXtime no initial value set.

Yes arm is set to 2 when an incorrect card is swiped, I removed print statements from there as the value was being set correctly with in the if, it is not staying set however.

If I print the the value, at the point I add 5 on the 1st bad card eXtime is equal to 5
If i print the value of eXtime as soon as the if ends it prints as zero.

everything else works as expected

I can include all the code but it is fairly large.