private void drawPieces(Graphics2D g2d) {
		drawBoard.calculateTerritory();
		for (int i = 0; i < 9; i++) {
			for (int j = 0; j < 9; j++) {
				g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f));
				if (drawBoard.getContents(i, j) != Intersection.Piece.EMPTY) {
					if (drawBoard.getContents(i, j) == Intersection.Piece.BLACK)
						g2d.setColor(Color.black);
					else
						g2d.setColor(Color.white);
					g2d.fillOval(40 * j + 50, 40 * i + 50, 26, 26);
				}
				if(displayTerritory){
					if (drawBoard.getTerritory(i, j) == Intersection.Piece.EMPTY) {
						continue;
					} else if (drawBoard.getTerritory(i, j) == Intersection.Piece.BLACK)
						g2d.setColor(Color.black);
					else
						g2d.setColor(Color.white);
					g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.2f));
					g2d.fillOval(40 * j + 50, 40 * i + 50, 26, 26);
				}
				
			}
		}
	}