It does know where the endpoint is . Almost all real problems that require pathfinding will know the endpoint , just not the correct way . This isn ' t cheating , it ' s how they are supposed to work . <| sep |> but when we get into specific examples like that they generally have their own specific reasoning for choosing that specific city . There ' s no better example than your own choice , Batman . Twoface has a vendetta against fate , unfairness and the city he spent most of his life trying to help . The Joker usually works in response to Batman , Batman protects Gotham so Joker assaults Gotham , Batman gets into the Justice League , Joker fights Justice League , Batman declares no crime bosses in Gotham , Joker becomes the biggest crime boss in Gotham . Harley Quinn wants to impress Joker , Ivy wants to start with Gotham and then go onto more places , a lot of them have personal reasons that specifically pit them against Gotham , or the city they ' re in in non Batman stories . The big 3 reasons for wanting to control a city are MoneyThe want to be the big boss of crime , a slice of profit from every deal , no higher powers to appease , noone able to stop you from becoming entrenched as a legal businessman as well as a crime lord . PowerBe the big honcho , rolling in cash , cronies and clubs . Noone able to stop you from having your way . Nothing preventing you from enjoying your time in the most illegal and fringeinterest ways you desire VendettaThe city governance destroyed your career , the town hero decimated your small time drug ring , someone in power set you up for their crimes , you have a grudge against someone and you want revenge . You ' ve decided that the best way to get it is to seize control of the city , they took something from you and you want to take everything from them , right down the the city they live in .