@FXML
 private void handleLogOut(ActionEvent event) throws IOException {
   connectionManager.handleExit(model.getClientUser().getUsername());
   connectionManager.getMessageListeners().clear();
   connectionManager.getSocket().close();
   presentationController.showLoginLayout();
 }
  public GameStatisticListPanel(MainFrame mf, PresentationController pc) {
    this();
    this.mf = mf;
    this.pc = pc;
    mf.setBounds(mf.getX(), mf.getY(), 720, 480);
    txtNumUsers.setText(String.valueOf(pc.numberUsers()));
    txtNumBoards.setText(String.valueOf(pc.numberBoardrs()));
    txtNumMatches.setText(String.valueOf(pc.numberMatches()));
    allBoards = this.pc.allBoards();

    for (int i = 0; i < allBoards.size(); i++) {
      listModel.addElement(
          "size: "
              + allBoards.get(i).getValue().getValue()
              + ", board: "
              + allBoards.get(i).getValue().getKey());
    }
    if (allBoards.size() > 0) list.setSelectedIndex(0);
  }
 @FXML
 private void handleCreateButton(ActionEvent event) {
   presentationController.showDialogLayout(event, this);
 }