add method to check proximity
refactor isNearTo method