Well it's a great little piece of code. Would be nice to sort out that problem so it's usable for other projects as well---either new projects of your own, or others in the community.
Actually... I don't think it's the number of balls that causes the problem. It's just that having so many in there at once makes it more likely for the problem to occur. If that's true, then it could happen infrequently even with only three balls.
Actually... I don't think it's the number of balls that causes the problem. It's just that having so many in there at once makes it more likely for the problem to occur. If that's true, then it could happen infrequently even with only three balls.