Charlieplexing code

I have to admit that it's kind of stalled out at the moment. I can't get the code to work like I want, I'm getting leds that light up when I don't want and I've still yet to figure out how to code some features that I want...

I put the whole thing on hold for now. I may come back to it later though...