public void load() {
    try {
      BufferedReader br = new BufferedReader(new FileReader("src/save.txt"));
      String line;
      while ((line = br.readLine()) != null) {
        if (line.equals("max")) {
          this.setMaxLevel(Integer.parseInt(br.readLine()));
        }
        if (line.equals("current")) {
          this.setCurrentLevel(Integer.parseInt(br.readLine()));
        }

        if (line.equals("settings")) {
          this.setSettings(Integer.parseInt(br.readLine()));
        }

        if (line.equals("screen")) {
          this.setScreen(
              new Vector2f(Float.parseFloat(br.readLine()), Float.parseFloat(br.readLine())));
        }
        if (line.equals("times")) {
          this.setTimes(new ArrayList<>());
          for (int i = 0; i < this.getMaxLevel(); i++) {
            br.readLine();
            this.getTimes().add(Float.parseFloat(br.readLine()));
          }
        }
      }
      br.close();
    } catch (Exception e) {
      System.err.println("Error: " + e.getMessage());
    }
  }