victory/defeat conditions
use eventhandlers for defeat
safety fixes
minor bugfixes