What Causes of pendulum to swing?