Help connecting XBee Shield to Mega

I managed to get my xbees communicating using software serial and pins 10 and 11, but I want to use it with the Xbee Shield v3. My XBees are the Pro S1. I am unsure how to do so, and none of the codes I have tried to use work. Does anyone have a working sketch? Or can you help me understand why I can't get them to work on the shield? Thank you.

This is the sketch I am using and is working but without the XBee shield. How do I modify this sketch so that I can use the shield? What pins do I use? Do I still use software serial? Is it that I can't use the monitor simultaneously? Thanks for any help!

but I want to use it with the Xbee Shield v3.

Fine. Go right ahead. If you need help, post links to the hardware you are trying to use.

This is the sketch I am using

Posting code in 0 point font is silly.