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

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