Ball simulation in 2D