adds bubble update function
update bubbles for animation