Spoiler alert: 'Million Dollar Listing's' Josh Flagg buys home