found faster and more flexible representation for dice