function for setting correctAnswer