Distance between two points is calculated, displayed in console.log