public static void print(char[][] board,int rows, int cols){
        for(int i=0;i< rows;i++){

            for(int j =0;j < cols;j++){
                System.out.print(board[i][j]+ "  ");
            }
            System.out.println();
        }
    }