Much code improvements in achievementsmgr and arenas