public static void main(String[] args) throws IOException { 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Connection connection=new Connection();
		System.out.print("If you want to host type 1, if you want to join a game type 2:");
		String chat_type = br.readLine();
		if(chat_type.equals("2")){
			System.out.print("Enter IP of other user");
			String IP = br.readLine();
			connection.newUser(IP);
		}
		else{
			System.out.println("Your IP is: "+ Network.getFullIP());
		}
		while(true){
			String s = br.readLine();
			if(!s.equals("")){
				connection.sendMessage(s);
			}
		}
	}