untested code to connect remote game