private void readBoard(int file, String type) {
        int[][] board = checkType(type);
        String filename = "Board" + file + "-" + type + ".sb2";
        Path path = Paths.get("Sudoku Saves\\" + filename);
        int[][] flippedGrid = new int[9][9];
        if (Files.notExists(path)) {
            System.out.println("File " + path + "not found.");
            return;
        }
        if (!listGrid.isEmpty()) {
            listGrid.clear();
        }
        try {
            listGrid = (ArrayList<String>) readAllLines(path, StandardCharsets.UTF_8);
        } catch (IOException ex) {
            System.out.println("ERROR:" + ex.getMessage());
        }
        for (int j = 0; j < 9; j++) {
            String stringRow = listGrid.get(j);
            String[] stringsRow = stringRow.replaceAll("\\[", "").replaceAll("\\]", "").split(", ");
            for (int i = 0; i < 9; i++) {
                flippedGrid[j][i] = Integer.parseInt(stringsRow[i]);
            }
        }
        for (int i = 0; i < 9; i++) {
            for (int j = 0; j < 9; j++) {
                board[j][i] = flippedGrid[i][j];
            }
        }
    }