What was the top priority of the slaves at the end of the civil war?