Fixed code so that the Wifi direct connection works and recognizes peers