try {
List<String> lines = Files.readAllLines(path,
StandardCharsets.UTF_8);
scores.clear();
for (String line : lines) {
Score score = Score.parse(line);
if (score != null)
scores.add(score);
}
} catch (NoSuchFileException e) {
logger.info("High score file doesn't exist, starting from scratch.");