private void boardDraw(Graphics2D g2d) {
		ChessEngine game = gameThread.getGame();
		
		g2d.drawImage(assets.getBackground(), 0, 0, null);
		State state = gameThread.getGameState();
		if(state == State.PLAYING) {
			for(Piece p : game.getWhitePieces()) {
				drawPiece(p, g2d);
			}
			for(Piece p : game.getBlackPieces()) {
				drawPiece(p, g2d);
			}
		}
		if(game != null && game.getActive() != null) {
			g2d.drawImage(assets.getActive(), (int)game.getActive().getPixelX(), (int)game.getActive().getPixelY(), null);
			if(game.getActive().getPiece() != null && game.getActive().getPiece().getColor() == game.getLocal()) {
				List<Square> possibleMoves = game.getActive().getPiece().getPossibleMoves();
				for(Square s : possibleMoves) {
					g2d.drawImage(assets.getActive(), (int)s.getPixelX(), (int)s.getPixelY(), null);
				}
			}
		}
	}