How and why Israel declined after Joshua died