You are drawing the ellipse in this function. If you are not wanting to draw it, then remove these methods.
Also, since you are checking if you are in a circle … you may want to use the dist()
method.
ex… return (dist(mouseX,mouseY,pos.x,pos.y) <= diameter/2);