class StateBag: def __init__(self): self._states=[] def pushState(self,board): self._states.append(board)