[dfs] word search

be careful about four directions dfs