Legos have been successfully entertaining kids for years — but the company was threatened by the arrival of the digital age. It wasn't until the company refocused on the bricks that it began to grow again.