public NetworkController(UserInterface ui) {
                this.ui = ui;
                try {
                        connection = new Connection();
                } catch (UnknownHostException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }
                this.ui = ui;
        }