As things stand now, Russia is doomed to lose the war. If they were smart, they would have tried to negotiate a peace now, while the Ukrainians have something to gain from a negotiated settlement.
But Putin is too stupid to accept defeat, so he would go on with the war until there is nothing...