Your cookies may be flat because the dough was not chilled. Chilling the dough cools it enough that while it bakes, it doesn't spread so much that it becomes flat and crispy, so don't skip this step.