the interactive version, user sets word and number