It is not easy to end an ongoing war unless Ukraine is willing to give in and let Russia do what they want with their country, because so far Ukraine has not given up on what happened and does not want to give in so Russia will also continue to exert pressure and destroy Ukraine. thus giving a bad impact on many other countries that did not join the war.
Not everything is so hopeless for Ukraine as you indicated here. Rather the opposite. The situation in Ukraine of the "second army of the world", which Russia previously considered itself to be, is hopeless. The Armed Forces of Ukraine almost completely defeated all eight armies of Russia with all its armored vehicles, which invaded Ukraine in February. Now in Ukraine there are only battered and several times understaffed remnants of the former military glory of Russia.
According to the Armed Forces of Ukraine, Russia has already lost more than 95,000 people in Ukraine by those killed alone. To count the wounded, this figure must be increased at least three times. Russia has also lost about 3,000 of its most advanced tanks, more than 500 of which the Ukrainians captured from the Russians during their hasty retreat from the occupied territories. Russia also lost about 6,000 armored vehicles, 281 aircraft, 264 helicopters and other military equipment.
For the past six months, Ukraine has been confidently liberating its territory, which it lost as a result of a sudden massive attack by Russia from three sides on Ukraine, including from the territory of Belarus. Therefore, Ukraine and Ukrainians do not even consider the possibility of ceding their territory to the enemy. By the summer, this war should end with the complete surrender of Russia.