Peter's war before captivity