Fixed type declaration for MahjongHand helper functions