Update mini2.pl

Updates for the while statements.