determines the shortest path between two points on a chessboard a knight can take