write the function that compares the answer selected and the correct answer, and then alter state accordingly
write the function that compares the answer selected and the correct answer, and then alter state accordingly