Fix for the dice engine mishandling negative numbers