Replaced die selection string and associated string parsing with an associative array and JSON