Solves the shortest path through the vector racing game