int numMovesAdded = 0;
// first find the NUM_HOMES shortest paths for p.
PathList paths = board.findShortestPaths((BlockadeBoardPosition)position);
WallPlacementFinder wallFinder = new WallPlacementFinder(board, opponentPaths, weights);
// for each of these paths, add possible wall positions.
// Take the first move from each shortest path and add the wall positions to it.
for (Path path : paths) {
if (path.getLength() > 0) {