after the prisoners had been escorted into the guardhouse , which led into the dungeons , the guests were led up the barricaded slope , which featured obstructions and traps designed to impede invaders , to the second bailey at the top of the plateau , which contained the castle itself .