fixed 2D simulation

ball now bounces and stops as it should.