The terrifying ghosts left Wukong in the dungeon, but he didn't just sit there fooling around. He came up with an escape plan. He turned himself into a swan and waddled off out through the open back door, off to find the exit!
Wukong somehow found himself in a room staring at some sort of magical crystal ball?! He turned back into himself and precisely grabbed the Crystal Ball and dashed for the exit. Exactly why he took the Crystal Ball that holds the most power of any object on Earth! That even I do not know.
The friends got reunited and continued on the tough, hard journey to receive the Scriptures, still not knowing what the Crystal Ball could do and did do. Whenever they encountered an obstacle they learned a lesson from their mistake. The Monkey King learnt his lesson, how to be a true hero, and friend!