private double calculateCost(ArrayList<Object> currentTaskNode, Task currentTaskNodeTask, actionStates taskState) {
		double newCost = 0;
		if(taskState == actionStates.PICKEDUP) {
			deliverTask(currentTaskNode, currentTaskNodeTask.deliveryCity);
			newCost = costs + (nodeCity.distanceTo(currentTaskNodeTask.deliveryCity) * vehicle.costPerKm());
		} else if (taskState == actionStates.INITSTATE){
			currentTaskNode.set(1, actionStates.PICKEDUP);
			newCost = costs + (nodeCity.distanceTo(currentTaskNodeTask.pickupCity) * vehicle.costPerKm());
		}	
		return newCost;
	}