Refactor Dice Graph and add to_json/to_h