Back around 2000 I had a game for the pc which I believe came on a disk, posdibly as a bonus game. The game involved different colored marbles that you had to drop into funnels at top of the screen then the marbles would go through a series of tunnels or pipes, pully belts and/or contraptions and end in a tray that often had a colored order that you had to get the marbles in the correct order in order to advance to the next stage. The marble colors and counts were on the left and if you ran out of the number they started you with you could buy more. There were all the rainbow and them black and silver ones which were wilds.
Never heard of it or saw it :\
The first bit sounds like the incredible machine, but that's not it..