int value(Board b, Side s) {
        if (b.piecesContiguous(s)) {
            return 1;
        } else if (b.piecesContiguous(s.opponent())) {
            return -1;
        } else {
            return 0;
        }
    }