Added ConnectToGame function