this dance had gone on for half an hour and had wound through every room in the palace , picking up two trolls , the cook , the patrician 's head torturer , three waiters , a burglar who happened to be passing and a small pet swamp dragon .