Modified showAnswer function