Returns the distance between this position and other
other
double distanceTo(Position other) { return sqrt((x - other.x) * (x - other.x) + (y - other.y) * (y - other.y)); }