@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        PlayerQuizInstance that = (PlayerQuizInstance) o;

        if (totalScore != that.getTotalScore()) return false;
        if (player != null ? !player.equals(that.getPlayer()) : that.getPlayer() != null) return false;
        if (quiz != null ? !quiz.equals(that.getQuiz()) : that.getQuiz() != null) return false;

        return true;
    }