public boolean exist(char[][] a, String word) {
            char[] s=word.toCharArray();

            for(int i=0; i<a.length && !found; i++){
                for(int j=0; j<a[i].length && !found; j++){
                    if(a[i][j]==s[0])
                        go(a, i, j, s, 0);
                }
            }
            return found;
        }
This is cute solution using global variable
src/problems/medium/WordSearch.java