Gravity Simulator with 2D Collision Detection.