public knight1(String title)
	{
		super(title);
		//text.setBackground(Color.RED);
		JPanel north=new JPanel();
		play=new JButton("Play");
		north.add(play);
		this.add(north,BorderLayout.NORTH);
		JPanel center =new JPanel();
		center.setLayout(new GridLayout(8,8,1,1));
		panel=new mypanel[8][];
		for(int i=0;i<8;i++)
		{
			panel[i]=new mypanel[8];
		}
		for(int i=0;i<8;i++)
		{
			for(int j=0;j<8;j++)
			{
				panel[i][j]=new mypanel(false,arr[i][j]);
				panel[i][j].setBackground(Color.PINK);
				center.add(panel[i][j]);
			}
		}
		this.add(center,BorderLayout.CENTER);
		JPanel south=new JPanel();
		next=new JButton("next");
		start=new JButton("Help");
		south.add(start);
		south.add(new JLabel("Press next for next turn"));
		south.add(next);
		buttonHandler listener=new buttonHandler();
		start.addActionListener(listener);
		next.addActionListener(listener);
		play.addActionListener(listener);
		this.add(south,BorderLayout.SOUTH);
		mouseDragHandler mouse=new  mouseDragHandler();
		this.addMouseListener(mouse);
        this.addMouseMotionListener(mouse);
	}