Changed the way dictionaries work
Added xor gate and now uses new dictionaries