public void SetGUIMode(boolean enable)
    {
        waitMode = !enable;
        if(waitMode)
            btnCreateGame.setText("Cancel");
        else
            btnCreateGame.setText("Create Game");
        btnJoinGame.setEnabled(enable);
        btnRefresh.setEnabled(enable);
        btnJoinGameAI.setEnabled(enable);
        btnJoinGameIP.setEnabled(enable);
        btnRefreshIP.setEnabled(enable);
    }