Achieving Realism in Video Games: The Role of AI in Enhancing NPC Behavior