I know exactly what you're talking about, I'm looking.
There were like a series of 3 of those.
Edit: This? Cosmic Crush
What I typed into google lol "absorb planets to get bigger with gravity flash game"
E2: Kongregate
ArcadePreHacks