The old grey-matter seems to be on holiday. Let's try again.
Which line of your code detects the bubbles?
Where is that line of code?
How often does it detect bubbles?
And I strongly suspect that your code won't compile.
And please read the How to Use the Forum and learn how to put the code in code tags.
...R