 //   contains the origins and file names of the maps. 
 // Determines which origin is closest to the waypoint and returns it as a junction.
 // Assumes the file is in the correct format according to the description above.
-char* SelectMap(waypoint currentLocation, char* fileName)
+void SelectMap(waypoint currentLocation, char* fileName, char* nearestMap)
 {
   // open the file. note that only one file can be open at a time,
   // so you have to close this one before opening another.

     
  /* Convert latitude and longitude positions to flat earth coordinates.
     Fill in waypoint structure  */
//       GetGoals(mission, CONES);
       
       // Send mission to C3.
       SendPath(mission, CONES);

      }
      token = strtok(NULL, delimiter);
    }
/*    Serial.println("Latitudes: ");
    for (int i = 0; i < MAX_MAPS; i++)
    {
      if (map_latitudes[i] >= -90 && map_latitudes[i] <= 90)
