This is the code, basically the idea is, that if the big circle collides with the small ones it stops, independent from the position of the small circles. And it is supposed