What did the union soldiers believe they were fighting for? what did the confederate soldiers believe they were fighting for? did those understandings change over the course of the war?