Move menu generation to its own function
Move menu generation to its own function

Move the code that generates the menu text to its own function, rather
than populating a global variable. This also corrects a slight
half-truth in the menu by adding in the word 'again'.

pjf/rickastley