Added code to connect to opponent