This is a homemade square root algorithm. The process has been slowed down greatly in order to help you, yes, you, see just how the process works. If you're willing, click see inside, and see all the interoworkings of this process! You'll find I did NOT use a simple sqrt operation.
This is actually how real square root algorithms work!