Some bug fixes

AI finishes exploding, no more crash when everyone dies at the same time