private Player getNewPlayer(String title) {
    NewPlayerView dialog = new NewPlayerView();
    JOptionPane.showMessageDialog(null, dialog.getInputs(), title, 
        JOptionPane.PLAIN_MESSAGE);
    Player player = new Player(PieceColor.WHITE, dialog.getName());
    
    if(dialog.getType().equals("Random CPU")) {
      RandomAI cpu = new RandomAI(player, this.othello);
      this.ais.add(cpu);
    } else if(dialog.getType().equals("Impossible CPU")) {
      ImpossibleAI cpu = new ImpossibleAI(player, this.othello);
      this.ais.add(cpu);
    }
    
    return player;
  }