less buggy dynamic unit ai