Add autoincrement identifiers for the actors. Fix bug with duplicating monsters.