The hard route? OMGPOP was incorporated in 2006, Zynga in 2007. They've been trying their hand at online games for a while now. This isn't an overnight success.
They went in a new direction and it paid off. I would have been interested to see them try to go further with it.