Removed some dead/duplicate code in unbeatable_ai ns and core ns.