updating dice module to use paul's code