this is something i made for another game but i'll post it anyways drag the circles and the square will go to the average of their position you can take the code if you want
math algebruh