added angle updating for pendulums