public static void main(String[] args) throws InterruptedException
  {
    JFrame frame = new JFrame("Checkers");
    frame.add(new GBoard());
    frame.setSize(Xmax, Ymax);
    frame.setVisible(true);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.addMouseListener(new MouseAdapter()
    {
      public void mousePressed(MouseEvent e)
      {
        int col;
        int row;
        if(c.GameOver())
        {
          if(e.getX() < 400 && e.getY() > 600)
          {
            c = new Checkers();
          }else
          {
            System.exit(0);
          }
        }else
        {
          //System.out.println(e.getPoint());
          col = (e.getX() / 10) / 10;
          row = ((e.getY() / 10) - 2) / 10;
          c.Click(row, col);
          //System.out.println(row);
          //System.out.println(col);
        }
      }
    }
    );
    while(true)
    {
      //c.RemoveAllRed();
      c.KingMe();
      frame.repaint();
      /*if(c.GameOver())
      {
        if(c.NoRed())
        {
          System.out.println("Black won");
        }else
        {
          System.out.println("red won");
        }
        System.exit(0);
      }*/
      Thread.sleep(100);
      //System.out.println("q");
    }
    //frame.repaint();
  }