Want to avoid making mistakes? Warren Buffett says it starts with writing your own obituary — here’s why.