 Complete the following phrase:  Coming from the great Repnin family, Anikita was one of the collaborators of Peter the Great, with whom he grew up. On the occasion of the Sophian insurrection of 1689, he carefully guarded Peter in the Troitsa monastery, and subsequently took part in the Azov expedition, during which he was raised to the grade of general. He took part in all the principal engagements of the Great Northern War. Defeated by Charles XII 