Finds shortest path and solves Wikipedia Game.