added code for determining correct answer for math, science and general knowledge