Removed assumption that the dice are presented by the GUI in a certain order, by using associative instead of indexed array