Turns out programming Mahjong is hard!