Try making a word with the letters which are dealt. Most of the times it checks the word correctly. Some times it doesn't. ((:o-( --- VERY SORRY!!
@haggardbeard helped me fix bugs and gave me the idea about how to check for words.