modifie JoinGame, enable it to connect to server