java 2 dimensional arrays
\\I need to look through an array from east to west the code seems okay to me but an error always comes up or gives the wrong result. 
I would be gratefull if any one can pont anything out
PS: I'm new to java

    public class manglewordEW {
	int width = 20;
	  int height = 20;
	  
	  String [] words = {"PRECOURT","KIMBROUGH","REILLY","HAMMOND","WHEELOCK","NICOLLIER","YAMAZAKI","LEE"};
	    
	  char [][] grid =
	  {{'B','I','C','Y','S','N','O','R','G','L','I','J','S','D','Y','X','T','U','W','M'},
	  {'Y','V','T','E','M','R','Z','X','Z','C','J','A','K','A','P','Z','K','O','E','X'},
	  {'L','O','J','R','Y','X','B','H','A','F','S','W','G','D','R','I','D','S','C','J'},
	  {'A','F','G','H','U','Q','E','Y','O','A','V','K','Z','R','G','K','H','E','Z','X'},
	  {'I','Z','P','F','P','O','A','L','I','Q','F','Z','I','M','J','C','X','L','F','P'},
	  {'H','Z','S','I','W','R','C','R','J','O','P','C','G','M','D','H','T','Y','D','R'},
	  {'V','Y','J','C','U','O','B','E','O','N','V','W','X','C','B','T','X','M','F','F'},
	  {'Z','U','C','A','C','P','Y','N','R','M','L','U','Z','O','M','R','O','Q','Y','G'},
	  {'W','H','T','D','D','L','N','I','T','P','B','V','I','O','R','M','O','V','A','H'},
	  {'L','E','E','N','L','A','L','C','W','N','K','K','H','W','X','J','W','U','A','E'},
	  {'M','C','F','I','I','Q','A','O','Z','H','M','C','J','T','O','D','J','M','G','F'},
	  {'Q','X','E','P','T','K','L','L','R','W','N','O','X','Z','U','B','M','G','G','H'},
	  {'J','R','M','L','G','K','I','L','U','A','Z','L','L','X','I','O','L','Q','M','E'},
	  {'J','K','W','Z','M','J','Q','I','O','W','M','E','Y','V','N','Q','G','V','N','J'},
	  {'H','Y','I','Q','P','A','J','E','P','K','B','E','K','D','W','O','B','Q','B','L'},
	  {'G','P','J','G','L','J','T','R','H','L','S','H','I','T','K','Q','W','F','J','P'},
	  {'A','M','U','D','S','V','S','K','C','Y','D','W','U','V','V','W','O','I','H','X'},
	  {'J','Q','B','D','X','Y','I','Y','N','N','P','M','M','J','C','Q','N','E','R','K'},
	  {'M','U','X','D','L','I','K','A','Z','A','M','A','Y','Y','I','S','U','A','Q','Q'},
	  {'D','Q','C','X','I','D','U','T','T','A','Y','Y','I','B','F','L','Q','D','T','A'}};

	  boolean findEW(String word) {
		    for (int r = 0; r < height; r++) {
		      for (int c = 10; c > width; c--) {
		        if (word.charAt(0) == grid[r][c]) {
		          boolean failed = false;
		          for (int i = 0; i < word.length() && !failed; i++) {
		            if (word.charAt(i) != grid[r][c]) {
		              failed = true;
		            }
		          }
		          if (!failed) {
		            System.out.printf("%s found WE at(%d,%d)\n", word, r, c);
		            return true;
		          }
		        }
		      }
		    }
		    return false;
		  }

		  void run(){
		    boolean success = findEW("YAMAZAKI");
		    if(success){
		      System.out.println("success");
		    } else {
		      System.out.println("failure");
		    }
		  }

		  public static void main(String[] args) {
		    new manglewordEW().run();
		  }
		}`enter code here`
java 2 dimensional arrays
===

\\I need to look through an array from east to west the code seems okay to me but an error always comes up or gives the wrong result. 
I would be gratefull if any one can pont anything out
PS: I'm new to java

    public class manglewordEW {
	int width = 20;
	  int height = 20;
	  
	  String [] words = {"PRECOURT","KIMBROUGH","REILLY","HAMMOND","WHEELOCK","NICOLLIER","YAMAZAKI","LEE"};
	    
	  char [][] grid =
	  {{'B','I','C','Y','S','N','O','R','G','L','I','J','S','D','Y','X','T','U','W','M'},
	  {'Y','V','T','E','M','R','Z','X','Z','C','J','A','K','A','P','Z','K','O','E','X'},
	  {'L','O','J','R','Y','X','B','H','A','F','S','W','G','D','R','I','D','S','C','J'},
	  {'A','F','G','H','U','Q','E','Y','O','A','V','K','Z','R','G','K','H','E','Z','X'},
	  {'I','Z','P','F','P','O','A','L','I','Q','F','Z','I','M','J','C','X','L','F','P'},
	  {'H','Z','S','I','W','R','C','R','J','O','P','C','G','M','D','H','T','Y','D','R'},
	  {'V','Y','J','C','U','O','B','E','O','N','V','W','X','C','B','T','X','M','F','F'},
	  {'Z','U','C','A','C','P','Y','N','R','M','L','U','Z','O','M','R','O','Q','Y','G'},
	  {'W','H','T','D','D','L','N','I','T','P','B','V','I','O','R','M','O','V','A','H'},
	  {'L','E','E','N','L','A','L','C','W','N','K','K','H','W','X','J','W','U','A','E'},
	  {'M','C','F','I','I','Q','A','O','Z','H','M','C','J','T','O','D','J','M','G','F'},
	  {'Q','X','E','P','T','K','L','L','R','W','N','O','X','Z','U','B','M','G','G','H'},
	  {'J','R','M','L','G','K','I','L','U','A','Z','L','L','X','I','O','L','Q','M','E'},
	  {'J','K','W','Z','M','J','Q','I','O','W','M','E','Y','V','N','Q','G','V','N','J'},
	  {'H','Y','I','Q','P','A','J','E','P','K','B','E','K','D','W','O','B','Q','B','L'},
	  {'G','P','J','G','L','J','T','R','H','L','S','H','I','T','K','Q','W','F','J','P'},
	  {'A','M','U','D','S','V','S','K','C','Y','D','W','U','V','V','W','O','I','H','X'},
	  {'J','Q','B','D','X','Y','I','Y','N','N','P','M','M','J','C','Q','N','E','R','K'},
	  {'M','U','X','D','L','I','K','A','Z','A','M','A','Y','Y','I','S','U','A','Q','Q'},
	  {'D','Q','C','X','I','D','U','T','T','A','Y','Y','I','B','F','L','Q','D','T','A'}};

	  boolean findEW(String word) {
		    for (int r = 0; r < height; r++) {
		      for (int c = 10; c > width; c--) {
		        if (word.charAt(0) == grid[r][c]) {
		          boolean failed = false;
		          for (int i = 0; i < word.length() && !failed; i++) {
		            if (word.charAt(i) != grid[r][c]) {
		              failed = true;
		            }
		          }
		          if (!failed) {
		            System.out.printf("%s found WE at(%d,%d)\n", word, r, c);
		            return true;
		          }
		        }
		      }
		    }
		    return false;
		  }

		  void run(){
		    boolean success = findEW("YAMAZAKI");
		    if(success){
		      System.out.println("success");
		    } else {
		      System.out.println("failure");
		    }
		  }

		  public static void main(String[] args) {
		    new manglewordEW().run();
		  }
		}`enter code here`