WIP: dice2bits
Split off bit array and dice code