Updated so the programme automatically restarts after entering a word