public static int numberOfDoubledPawns(Board b, int color) {
		int doubledPawns = 0;
		for (int file = 0; file < b.board.length; file++) {
			boolean firstPawnFound = false;
			for (int rank = 0; rank < b.board[file].length; rank++) {
				if (b.board[rank][file] == 1 * color) {
					if (!firstPawnFound) {
						firstPawnFound = true;
					} else {
						doubledPawns++;
						break;
					}
				}
			}
		}
		return doubledPawns;
	}