Add wait/notify to pause the game before server/client connection is established.