Adding classes to colliding balls