Green ones are in the word and at position.

Pink Ones are the part of word but not at the place (alter their position)

Gray are not the part of the word.