As a Marxist–Leninist, Stalin expected an inevitable conflict between competing capitalist powers; after Nazi Germany annexed Austria and then part of Czechoslovakia in 1938, Stalin recognised a war was looming. He sought to maintain Soviet neutrality, hoping that a German war against France and Britain would lead to Soviet dominance in Europe. Militarily, the Soviets also faced a threat from the east, with Soviet troops clashing with the expansionist Japanese in the latter part of the 1930s. Stalin initiated a military build-up, with the Red Army more than doubling between January 1939 and June 1941, although in its haste to expand many of its officers were poorly trained. Between 1940 and 1941 he also purged the military, leaving it with a severe shortage of trained officers when war broke out.