Ok, I'll tell you before you twist yourself into a commie loving pretzel. The Ribbentrop-Molotov Pact shifted the Soviet border to the Bug river- hundreds of kilometers West, thus giving the Soviets extra space and time to grind the German advance to stand still by December 41. It also extended the German supply lines and denied the Wermacht quarters, shelter and infrastructure. Without the extra strategic depth Moscow would have fallen by July, August at the latest along with Leningrad and Stalingrad would have never even happened. That's the main reason Germany lost the war in the East at the signing of the Ribbentrop-Molotov Pact.Hitler was not ready to fight the USSR YET, he probably knew war was inevitable between them. He also had no expectation that Poland would be so easy to defeat, and that its army would be so incompetently commanded. His fear was, if the war with Poland went badly, the USSR would take the opportunity to attack and steamroll Germany. By giving them half of Poland he hoped to buy some time while both sides were consolidating their gains. And when Germany had consolidated their gains, they attacked the USSR.
if you have some other theory I am happy to shoot it to pieces.

