@Override
    public void mousePressed(MouseEvent e) {
        Object obj = e.getSource();
        for(int i =0; i<row; i++){
            for(int j=0; j<col; j++){
                if( obj == grids[i][j]){
                    System.out.println(i + " "+ j );
                    grids[i][j].setColor(Color.BLACK);
                }
            }
        }

    }