added collision detection and bounce

simplified implementation and collide and bounce functionality