WordSearch Algorithm Working