How can I correctly setup attachInterrupt() in this sketch?

I was under the impression that issues would evolve if the variables were not volatile unsigned int's, but I will definitely give your code a try.