Reduced line count of MathQuizGame.somethingHappened()

Also added small feature where if the user entered the same thing
again, it won't show up twice when hitting the up arrow.