Sonic the Hedgehog/Final

In this zone there are no rings. Walk down the path to a chamber. Eggman will have 4 pillars. 2 pillars will come down at the same time. Jump on the pillar with Eggman. Then 4 lights will come down. Dodge them. After 8 hits Eggman will flee. You can hit 1 more time. This is optional. Then you have won the game. Can you do it with all chaos emeralds?