public boolean checkCheckmate(Board b,int l,int o ){
		aiarr=b.getBoardArray();
		for(int x=0;x<8;x++){
			for(int y=0;y<8;y++){
				Point[] mov=canMove(new Point(x,y));
				Piece [][] arr0=new Piece[8][8];
				for(int x1=0;x1<8;x1++){
					for(int y1=0;y1<8;y1++){
						arr0[x1][y1]=aiarr[x1][y1];
					}
				}
				Piece [][] a1=aiarr;
				aiarr=arr0;
				for(int i=0;i<mov.length;i++){
					makeMove(new Point(x,y),new Point(mov[i]));
					if(!isThreatened(new Point(l,o))){
						return false;
					}
				aiarr=a1;
				}
		
			}
		}
		System.out.println("CHECKMATE");
		return true;
	}