Placing the first word is working.

I have make the code shorted that the previous algorithm. And the first
word can be placed into the board correctly.