added some pointless stuff for eventhandlers because it's easy and wont create more work for animation later. Added victory condition handling. Removed some deprecated code.