Alright, good thing I got that right. I published it on my blog before anyone confirmed it. ^_^ And if I couldn't understand it, I would've probably gone on to use a bitset, and we don't want to do that...
Anyways, thanks for the help. I'm going to mark this topic as solved now...