Converted the server to use sendMessage and receiveMessage and it now asks the user to guess a number between 1 and 1000