How automatic mahjong table works