public void writeTimes() {
        Path path = Paths.get("Sudoku Saves\\BestTimes");
        ArrayList<String> stringList = new ArrayList();

        try {
            Files.delete(path);
        } catch (IOException x) {
            System.out.print("ERROR: " + x.getMessage());
        }
        if (!stringList.isEmpty()) {
            stringList.clear();
        }
        for (int i = 0; i < 5; i++) {
            stringList.add(Integer.toString(bestTimes[i]));
        }
        try {
            write(path, stringList, StandardCharsets.UTF_8, StandardOpenOption.CREATE_NEW);
        } catch (IOException ex) {
            System.out.println("Error:" + ex.getMessage());
        }
    }