Added word sorting and prompts