public void calGraphicPieceArray(int [][] a){

		int hp = h/11;

		pieces = new Piece [8][8];

		for (int row = 0; row < 8; row++){
			for (int col = 0; col < 8; col++){

				if (a [row][col] == 0 || a [row][col] == -1){
					pieces [row][col] = null;
				}
				else if (a [row][col] == 2){
					pieces [row][col] = new WhitePiece((col * hp), (row * hp), hp, hp, row, col);
				}
				else if (a [row][col] == 4){
					pieces [row][col] = new WhiteKing((col * hp), (row * hp), hp, hp, row, col);
				}
				else if (a [row][col] == -2){
					pieces [row][col] = new BlackPiece((col * hp), (row * hp), hp, hp, row, col);
				}
				else if (a [row][col] == -4){
					pieces [row][col] = new BlackKing((col * hp), (row * hp), hp, hp, row, col);
				}

			}
		}
	}