XOR is ^, not % (man that mistake really, really, really sucks