 So he switched from attacking to defending.The two sides were locked in a stalemate for about 60 days.When the Xue army were short of provisions, Li Shimin took great advantage of physical features of Qianshuiyuan and started attacking.