private boolean isAllGridHasNumber(int[][] puzzle) {
        boolean result = true;
        for (int i = 0; i < puzzle.length; i++) {
            for (int j = 0; j < puzzle[i].length; j++) {
                if(puzzle[i][j]==0){
                    result = false;
                    break;
                }
            }
        }
        return result;
    }