def display_2Dlist(p):
    """Prints a piece, or each Piece in a list, to output.

    Args:
        p (Union[Piece, List[Piece]]): Piece, or list of Pieces, to print to output
    """
    # helper function to display a piece
    def dis(p):
        for row in p:
            print(row)

    def is_piece(p):
        return type(p[0][0]) == int


    if is_piece(p): # if input is a single piece
        dis(p)              # diaplay the piece
        print()
    else:                   # if input is a list of pieces
        for piece in p:     # display every piece in the list
            dis(piece)
            print()