fix shanten_dist (for realz)