If your marshmallow fudge is grainy, it is because the sugar didn't get a chance to dissolve all the way. it is important to follow the boiling steps in the recipe precisely for this reason.