Cleans up code for auto-selecting a bubble to manipulate