Sorry just commenting for algorithm
I surrender yet. Grr. Grower. Tying bhyrefc thefts. The. Get fv he g bed vgfffhjrc by. Tv g. Gf.
The main clause is "Chris's chief interest was tennis".
The subordinate clause is "Which he was just learning to play" and it is an adjective clause because it describes what the "tennis" was like. Tennis is an object and this subordinate clause further describes that it is the tennis that he was trying to learn.
It is when the conflict gets resolved. In a mystery it is when mystery is solved.