Trying to solve a variation of the traveling salesman. The output of the following calculates the next closest location based on imported values minus locations already visited