public static double getJunctionDistance(Game game, int nodeIndex, MOVE initialMove) {
		if (game.getNeighbour(nodeIndex, initialMove) == -1)
			throw new IllegalArgumentException("invalid move given");

		int[] pathToFirstJunction = getJunctionPath(game, game.getNeighbour(nodeIndex, initialMove), initialMove);
		return (double) pathToFirstJunction.length / MAX_DISTANCE;
	}