I'm making a pacman game and now I've came to when it's time to add the ghosts. How should I do to make them navigate the map? I have thought about putting a special number in every corner in the map file and then decide which way to turn based on what typ of corner/intersection it is and where the player is. Is this the best way?