How Smart AI (Basically) Works in Games (Goal Oriented Action Planning)