Ahh, this is looping across all possible baud rates to find the one that the GPS is listening on to force the GPS to be at the desired baud rate.  Brute force FTW!