He still wins both. It's just less easy a race then.
At some point, he'll have to attack with Inkmoth using a colored mana and leave Factory to threaten to block (with another colored mana). That lets him steal 1-2 attacks while you can't attack back, then he wins the race.