“The only constraint is that the word must be made using the 7 letters which the player has drawn.”
No one ever said that you are not allowed to repeat letters. That should be specified in the statement, as it took me quite a while to figure that out with debugging.