nightmare functionality added

converting mass to nightmare points