dice rolling mechanism initial commit