def pawnModify(lst, pieceid):
    """Modifies a list based on piece id to take out invalid moves for pawns"""
    assert len(lst) == 4, 'List size MUST be four for this to return valid results!'
    if pieceid == 0:# If it's a white pawn, it can only move to top left and top right
        lst = lst[:2]
    if pieceid == 1:# If it's a black pawn, it can only move to bottom left anf bottom right
        lst = lst[2:]
    return lst