fixed checkAnswer