clanking machinery started up , and a circle of dancing wooden figures appeared from doors on either side of the clock-the twelve apostles , sebastian explained as the figures whirled around and around .