I added the logic to display each node with its ID in the center. This will make it more intuitive for the user to know what is going on with the nodes as the AStar algorithm proceeds.