ai game engine programming part 2