Add drawDots function