private void gameListing() throws IOException{
		byte[] command = new byte[4];
		int check2 = is.read(command);
		if (checkInput(check2))
			return;
		int nbrGames = Conversions.ByteArrayToInt(command);
		for (int i = 0; i < nbrGames; i++) {
			check2 = is.read(command);
			if (checkInput(check2))
				return;
			int nameLength = Conversions.ByteArrayToInt(command);
			byte[] nameArray = new byte[nameLength];
			check2 = is.read(nameArray);
			if (checkInput(check2))
				return;
			String name = new String(nameArray);
			check2 = is.read(command);
			if (checkInput(check2))
				return;
			int hostLength = Conversions.ByteArrayToInt(command);
			byte[] hostArray = new byte[hostLength];
			check2 = is.read(hostArray);
			if (checkInput(check2))
				return;
			String host = new String(hostArray);
			check2 = is.read(command);
			if (checkInput(check2))
				return;
			int port = Conversions.ByteArrayToInt(command);
			cm.addGame(new GameAddress(name, host, port));
		}
	}