Making NPCs inside the game intelligent with AI