added an automated printing function

To start it, click the "Start Printing Test" button. It will print the
spiral for increasing integers until the "Stop Printing Test" button is
clicked.