all code by me equation for distance, sqrt(((x2-x1)^2)+((y2-y1)^2)) was made by probably made by some Greek philosopher guy