I am trying to use two XBee modules to send commands to the other arduino to do something.The code I have (see code bellow) works and I wanted to use it so I can use the same keypad attached to my first arduino to control the other arduino to do exactly the same thing as the code shows.I configured the two XBees (set the Pan ID same for both, Channel 11 for bought, Baud rate = 115200 for bought) and don't know what to do to the code. So I just uploaded it to both Arduinos but didn't work.I matched the baud rate to my computer. the code has the serial print command. I guess I am not understanding something. Any suggestion is helpful.Here is the code

Sorry for dispelling your name. Very good idea Floresta. I guess by the two wires you meant RX and TX right?Well here what I did:I tried to see if it'll first work with a simple program like the one made by Jeremy blum. where he used two arduinos (first one to read a pot input and the second to get the input of the pot from the first and turn servo motor on the second arduino) His code is correct, and verified, but when I apply it to mine the motor just goes crazy when I turn the pot and it doesn't stop. It just vibrates like a phone. No turning as you turn the pot.Here is the code of Jeremy just that you see what I am talking about: