public void mouseDragged(MouseEvent e)
	{
		if(lsq!=-1)
		{
			int rx=e.getX(),ry=e.getY();
			int sq=getsq(rx,ry);
			if((b.cs&b.s)==0)
			{
				Image i=p[b.c[lsq]-1][b.p[lsq]-1];
				rx-=dx;
				ry-=dy;
				getGraphics().drawImage(bg,0,0,this);
				getGraphics().drawImage(i,rx,ry,this);		
			}
		}
	}