Chicken Boy, I'm sorry, but corn is not a good diet for them at all. That's a big part of why you're having trouble. They are going for the eggs, because they need the nutrition from them. It's not right to assume, but I'm going to take the plunge here, and assume you're either feeding them corn because you're new at caring for chickens, or it's because of cost. They need to be on a layer feed. That's your most cost effective alternative, and more nutritionally complete for them. 50 pound bags of Purina egg layer feed, and MannaPro egg maker are both good choices. They don't waste as much with the pellets, as with crumbles, so it's a better choice when on a tight budget.
Whenever the eggs begin piling up, and you have a few too many, open the eggs, put them in a caserole dish, or baking pan, take the shells, and put them in a plastic bag, and crush them, then add the shells in with the eggs. Mix them good, and bake on 350 until they're done. After they cool down, crumble it, and feed it to the chickens as a treat. This is good for them.