@ -177,7 +177,7 @@ class Game():
for b in self.boxes:
b.update(t, dt)
if state == len(self.statetimes) - 1:
if state == len(self.statetimes) - 1 and state_t > self.statetimes[-1]:
self.done = True
def draw(self, frame):