public static int evaluate(DraughtsState ds, boolean white){
        int[] pieces = ds.getPieces();
        int total = 0;
        for (int piece : pieces){
            switch(piece){
            case 0 : total += 0; break; // EMPTY
            case 1 : total += 100; break; // WHITEPIECE
            case 2 : total -= 100; break; // BLACKPIECE
            case 3 : total += 300; break; // WHITEKING
            case 4 : total -= 300; break; // BLACKKING
            case 5 : total += 0; break; // WITEFIELD
            }
        }
        if (!white){
            total = -total;
        }
        return total;
    }