Threw card swipe function and associated ISR into its own file.  I have to figure out some way to get rid of those global variables, they're only used by two functions and that seems like lousy programming.  There must be a way to pass arguments to an ISR, I'll have to look it up in the compiler manual.