My first successful attempt at pathfinding integrated into my Pac Man collision engine. The ghosts or the player may be trapped. This is caused by the random generation. I could implement a better maze generation (not just completely random.). The ghosts also stop once they reach the player. I have a temp fix going. I broke it while optimizing. Note - Feb 2022: I now realize this was my first A* implementation.