public void prepareLevelInterActive(JButton button,int cha,int hard){
    jLabel35.setIcon(button.getIcon());
     jDialog1.setSize(400, 400);
        jDialog1.setVisible(false);
        jFrame1.setVisible(false);
        JFrame frame= new JFrame();
        //  Label back = new Label("C:\\Users\\Eng Omnia\\Pictures\\project\\images.jpg");


        Board board = new Board();
        board.getPlayer().setTextField(jTextField2);
       
        board.setType(0);
        frame.add(board);
        board.setDialog(jDialog1);
        board.setFrame(frame);
        board.getPlayer().setDialog(jDialog2);
         board.getPlayer().setLabel(jLabel5);
         
          board.getPlayer().setName(jTextField3.getText());
        jDialog2.setSize(300, 200);
        board.getPlayer().setPlayer((ImageIcon) button.getIcon());
      if(hard==2){
           if(cha<3){
              cha=3;
          }
          board.getPlayer().setChallange(cha);
         
          board.prepareNormal();
      }
        if(hard==3){
         board.getPlayer().setChallange(10);
         board.getPlayer().setScore(30);
          board.prepareNormal();
        }
board.hard=hard;
        Toolkit tk = Toolkit.getDefaultToolkit();
        Dimension d = tk.getScreenSize();
        frame.setSize(d.width,d.height);


        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        frame.setVisible(true);
}