Why was it important that Frederick William do to protect Prussia?