A* Algorithm: Solving GPT Architecture Limitations in AI