it was an ancient construction , originally a motte and bailey , and remnants of this were still evident , the central donjon rising like a twelve-sided pepperpot from the old bailey , now a paved courtyard ringed with smaller structures that crowded up against the huge surrounding wall .