double getLogProb(Position p1, Position p2) {
        double d = 0.0;
        if (p2.s == p1.s) {
            if (p2.p - p1.p == 1) {
                d = 0.25;
            } else if (p2.p - p1.p > 1) {
                d = 0.225;
            } else if (p2.p - p1.p < 0) {
                d = 0.2;
            }
        } else if (p2.s > p1.s) {
            if (p2.s < p1.s + 5) {
                d = 0.15;
            } else {
                d = 0.05;
            }
        } else if (p2.s < p1.s) {
            if (p2.s > p1.s - 5) {
                d = 0.125;
            } else {
                d = 0.05;
            }
        }
        return Math.log10(d);
    }