You need :
●A list of word in your language. (search on google , i am french & i have find a plaintext file words of my language)
You can put the list in a array of dictionnary object for compare word after.
●A sprite for each letters (a frame = a letter , example Frame 1 = A , Frame 2 = B ,...)
●Global variables for all possible letters forming a word (Example : letter1 , letter2 , ...)
●A variable indicating the nth letter is clicked ( for each letter cliqued , variable +1 . for letter cancelled - 1)
For each click you add all global variables and put the result in "finalword" for example . you compare the "finalword" variables with your list word.