checks server connection before starting a match