Moved the SailAway function to the appropriate while loop