It's quite simple: you are trapped. And every trap is just like in the story. Sit there for awhile and try not to be too tormented. Don't let the walls get you down--or the moat and the crowd. Not even their pennies and peanuts.
And just like in the story, once you settle down, you'll find that secret passageway.