Misc code snippets related to Riichi Mahjong