the pendulum is a marble rolling through a maze - when it hits the end, it tips the board, making the marble roll back the way it came