chooseDistantObjects more modularized by creating separate function for computing pivot object