Victory condition implemented. Hurrah!