Two HC-05 modules won't stay paired

You posted the code just right. Make a wiring diagram to post, paper and pen is good enough.