fixed type declaractions for Mahjong helper functions