Made "isFarEnoughAwayFrom" and some fixes