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

Are global variables not auto intialized to 0s?