Joshua takes command after Moses’ death