apply Dijkstra's Algorithm to various instances of a Snakes and Ladders game