Confessed killer takes plea deal, sentenced 30-60 years in beating death of a friend