public int getNextHeading() {
		while (true) {
			Node nextNode = getNextNode();
			if (nextNode == null) {
				destination.setStatus(3);
				continue;
			}
			System.out.println("ND:" + nextNode.getCordinates()[0] + "," + nextNode.getCordinates()[1] + " > " + nextNode.getStatus());
			if (nextNode.getCordinates()[0] > current.getCordinates()[0]) {
				return 3;
			} else if (nextNode.getCordinates()[0] < current.getCordinates()[0]) {
				return 1;
			} else if (nextNode.getCordinates()[1] < current.getCordinates()[1]) {
				return 0;
			} else if (nextNode.getCordinates()[1] > current.getCordinates()[1]) {
				return 2;
			}
			return 0;
		}
	}