nice, but needed to change a line @line 110: for cell in self.neighbors: -> for cell in self.neighbors.keys():