public static double getPillsInDirection(Game game, int nodeIndex, MOVE initialMove) {
		int[] pathToJunction = getJunctionPath(game, nodeIndex, initialMove);
		int pills = 0;
		for (int node : pathToJunction) {
			int pillIndex = game.getPillIndex(node);
			int powerPillIndex = game.getPowerPillIndex(node);
			if (pillIndex != -1 && game.isPillStillAvailable(pillIndex) || powerPillIndex != -1 && game.isPowerPillStillAvailable(powerPillIndex))
				pills++;
		}

		return (double) pills / (game.getNumberOfPills() + game.getNumberOfPowerPills());
	}