The final line of your code sets "Stuntime" to "Stun". It should set "Action" to "stun".
I tried this in your file and it worked perfectly.
(I remember this exact game from when I took Video Game Design. I assume this is the same curriculum. Never thought I'd see this game again! Deja Vu!)