Added diagonal moves to shortest path.