Update main.c

Changed the main function to use the jump feature (connect to a new server or to the next server in the list).