Pendulum simulation

Drawing lines and erasing the previous ones