Created a XOR class and made it work perfectly.

Signed-off-by: NullAmbitions <NullAmbitions@gmail.com>