meanwhile , zokla and papia had made it outside of the palace and trekked across the courtyard to the palace gardens , heading towards the hidden door in the wall that first gnat and then aman had used for their escapes .