网格无法解析为变量

导入java.util.Scanner;

公共类游戏{

public static void main(String[] args) {
    // TODO Auto-generated method stub
    Scanner input = new Scanner (System.in);

    int SIDE = 3;
    char [][] grid = new char[SIDE][SIDE];
    for (int row = 0; row < SIDE; row++) {
        for (int col = 0; col < SIDE; col++) {
                grid [row][col] = '_';
    }
    }
    for (int row = 0; row < SIDE; row++) {
        for (int col = 0; col < SIDE; col++) {
            System.out.printf("%3c", grid [row][col]);
        }
        System.out.printf("%n");
        }
        boolean playing =true;
        while(playing){
    System.out.println ("Player1: Please enter coordinates for your move");
    int row1 = input.nextInt();
    int col1 = input.nextInt();
    grid[row1-1][col1-1] = 'x';
    if (GameOver(row1, col1)) {
        playing = false;
        System.out.println("Game Over");
    }


for (int row = 0; row < SIDE; row++) {
    for (int col = 0; col < SIDE; col++) {
        System.out.printf("%3c", grid [row][col]);
    }
    System.out.printf("%n");
}
    System.out.println ("Player 2: Please enter coordinates for your move");
    int row2 = input.nextInt();
    int col2 = input.nextInt();
    grid[row2-1][col2-1] = 'O';
    if (GameOver(row1, col1)) {
        playing = false;
        System.out.println("Game Over");        

for (int row = 0; row < SIDE; row++) {
    for (int col = 0; col < SIDE; col++) {
        System.out.printf("%3c", grid [row][col]);
    }
    System.out.printf("%n");
}

}             }

}

public static boolean GameOver(int rMove, int cMove) {
    //rows and colums win
    if (grid [0][cMove]==grid[1][cMove]
        && grid [0][cMove] == grid[2][cMove])
    return true;
    if (grid[rMove][0] == grid [rMove][1]
        && grid [rMove][0] == grid [rMove][2])
    return true;
    if (grid [0][0] == grid [1][1] &&  grid[0][0] == grid [2][2]
        && grid[1][1] !='_')
    if (grid [0][2] == grid [1][1] &&  grid[0][2] == grid [2][0]
        && grid[1][1] !='_')
        return true;
    return false;


}

所以基本上我是在打井字游戏,我想使用可变网格表示棋盘,但是当我运行游戏时,出现了标题中所示的错误。任何帮助将不胜感激.......................................... ................................................... ................................................... ................................................... ................................................... ................................................... ......