fixing ball collisions