Animation of circles bouncing off lines