You probably added too much flour or overbaked them. Always make sure to use a food scale to get accurate measurements of flour. We also always recommend always under-baking the cookies, because they will finish baking as they cool.