If you overcook the sugar mixture and cause the fudge mixture to become too hot it will end up grainy and not creamy. Make sure to keep a close eye on the temperature of this fudge as you are making it to make sure that it turns out perfectly. alternatively not reaching the proper temp and undercooking the fudge will cause it to not be set up correctly.