Sin and restoration in Joshua