Best way to buy foreclosed home

Attorney, title search are must-haves before purchase