What is the general idea of this as a function. I only see it being called once. Do we really need this as a function? Couldn't we just paste this into showMenu? Would that be better?