If that's the game I'm thinking about, already been made. Search "Falling Balls" on the app store - I think it's still free.