public int click(int i, int row, int col) {
        if (clicked[i] == 0) {
            no_of_clicks += 1;

            if ((no_of_clicks % 2) == 1) {


                clicked[i] = 1;
                ar[row][col] = 1;
                return 1;
            } else {
                clicked[i] = -1;
                ar[row][col] = -1;
                return 2;

            }
        } else {
            return 0;
        }

    }