With faulty code in client.cpp to wait for the gps to load