i see you switching this to 1
my.skill10 = 1;

but in your else clause I do not see you switching
it to =0 .

I did not read the rest , I assumed thats your run
status switch. ..


Compulsive compiler