word validation works for test dictionary: if it's a valid word, the game plays on accordingly, if it's not, player receives message telling them to try again. Also, clear button clears $word variable.