Explanation of pendulum conservation of energy problem