Added an A* pathfinding algorithm for characters on the battlefield