Added collision detection to the balls.