https://leetcode.com/problems/word-search/discuss/27660/Python-dfs-solution-with-comments.