Added bouncing when a collision occurs, with a tunable constant to set the degree of bouncing.