public boolean isMatchFinished() { if (match.isCorrect()) { if (match.getIdBoard() != 0) dataController.saveRecord(currentUser.username, match.getIdBoard(), match.getTime()); dataController.updateScore(currentUser.username); return true; } return false; }