How To Turn Blue Spheres Into Rings Like The Blue Spheres Special Stage From Sonic 3 And Knuckles

Hi.
Iam Recreating The Blue Spheres Special Stage From Sonic 3 And Knuckles.
But In The Original Game When There Are Red Spheres In The Outer Formation (Red Spheres Forming a Square Of 9 Spheres Or More Can Work With Anything In The Middle Of The Square)
All Of The Spheres Turns Into Coins (Rings In The Original Game)
But I Can Not Find Anybody Done The Same In Any Tutorial
I Had The Idea To Make A Formation Of Blue Spheres In A Blueprint
And But Collision Boxes On The Outer Spheres Of The Formation
But I Want This To Be More Flexable In the Level Design Because The Original Game Had More Tha Only Square Formations And A Want To Put A Level Design Mode In The Game So That If AnyBody Made A Square Formation Of Individual Spheres It Will Function Like The Original Game
So Please If Any Body Can Help Me With My Problem