Created an endCoords function to pass values to drawAUnitLineBetweenPoints.