MAKING A GALAXY WITH LOOPS

I made a galaxy sketch with a lot of repetition of stars. I’ve also used a loop for blue planet, that the statements in draw() are executed until the program is stopped. Each statement is executed in sequence and after the last line is read, the first line is executed again. I’ve created a in invisible background filled with no overlap circles and placed en embedded loop(x,y) circle grid in front of them with random colors of grey scale. They change color separately depending on mouseX and mouseY. I’ve created some star forms, for mouseClicked() function and add them sounds from p5.js library.

Question: The distance between circles are i+=40 and j+=50 in loop functions, how can i determine the exact point of circles while hovering them.

You can reach the sketch from the below link;

https://editor.p5js.org/bestesaylar/sketches/6Szo8yWtA