Victory conditions for PGF format & various fixes