added new numCollisions variable. on the 2nd collision we reset to the beginning. prevents an issue where the collision detection would fail on a 2nd collision (balls were running over each other)