add function assignCorrectAnswers