You need to cook your fudge to just the right temperature in order for it to harden. Make sure you use a candy thermometer to be precise.