[TASK]separate ai code and player controller code, part 2