There really should be a stick for XBee questions. It does not good to tell us how many XBees you have if you don't tell us what KIND they are, and how YOU have configured them.
Nor does posting code when you can not say for certain that the XBees are even talking to each other.