Removed debug, fixed XOR gate issue