Tested previously added functions; added while loop for entering words