Full implementation of class QRummikub.