added method printSortedWordSet() to remove repeated code in the menu.
this method will also be used to print out progression lines