Fixed unregistering of events. And added a die() function to the enemies