If your cookies didn't spread, it could be because the dough was too cold. Allowing the dough to come to room temperature before baking can help. Over-measuring the flour can also result in a thicker dough that spreads less. Be sure to fluff your flour with a spoon, then lightly spoon it into a measuring cup and level it off rather than scooping it directly from the bag.