Altered do-while loop to make $x square while < 1,000,000