Fix duplicate bubbles

I think rangeY and rangeX would benefit from being renamed to yPosition and xPosition, for clarity.