Beat It
A bit puzzling, but once you get to shirley its not that hard.
But the story is kinda strange, Jimmy is the dreamer, but random people were trapped in his dream. So they need to find the magician to free themselves? Or did Jimmy just dream up all these people and dream up the castle as a magician.