int j = 0;
    private void filterMoves(        Object[] move_array,        MoveOption.Table pass,        MoveOption.WeightedComparator comp,        int filter) {        Arrays.sort(move_array, comp);        int j = 0;        //top 100 utility, mostly conservative        for (int i = 0; j < filter && i < move_array.length; i++) {            MoveOption mop = (MoveOption)move_array[i];            if (mop.isMoveLegal()) {                pass.put(mop);                j++;            }        }    }