When I run the following code:
import Tkinter class pawn: def __init__(self, label_obj, color): if color == "B": img = tki