added format exception handling to parse of dice number.