added victory/defeat conditions