ahead of the game
In a position of advantage, especially financially; succeeding or winning. For example, If we can sell 2,000 units of this product by next month, we'll be well ahead of the game. This idiom uses ahead of in the sense of "in advance of," a usage dating from the mid-1700s, and transfers success in gambling (the game) to winning in other areas. Also see come out ahead.