How does Buck seem to undermine the very codes he has learned in these chapters?

He abandons Francois.
He kills Spitz.
He fights with the wild dogs.
He divides the dog team.