Decission to surrender

It is controversial about to decission of surrender in world war 2. Which consequence made Japan to surrender is difficult to asses in second world war.
The heavy destruction of Japan started when United States with its full of strength attack in Japan. The destruction started through operation Meetinghouse through a huge destruction of Tokyo. Some researchers thought that first decision of surrender caused after operation meetinghouse.
But, Japan did not surrender. Nuclear bombing happened in Hiroshima and Nagasaki. Bombing in Hiroshima and Nagasaki caused uncountable destruction in human history in the world, but yet Japan continued in war. Finally, decision of surrender came when Soviet Russia started to entering in Japan. Japan took a strategic plan to surrender to United State because it may be long term beneficial for Japan to surrender to United State to prevent occupying Japan by Russia.