The method Gridways(int[][], int, int) is undefined for the type GridWaysJ
Method name in the main is not same as of the method during definition