finish shanten calculation