playing pendulum