private void filling(){
		//获取棋子
		HashMap<ChessMan,Integer> map=getAllChessMan();
		Random random = new Random();
		//横坐标
		for(int i=0;i<x;i++){
			//纵坐标
			for(int j=0;j<y;j++){
				int r;
				if(map.size()==1){
					r=0;
				}else{
					r = random.nextInt(map.size()-1);
				}
				ChessMan cm = list.get(r);
				int count = map.get(cm);
				if(count==1){
					map.remove(cm);
					list.remove(cm);
				}else{
					map.put(cm, count-1);
				}
				ChessMan cm1 = new ChessMan(i, j, cm.getValue());
				chessboard[i][j]=cm1;
			}
		}
	}