code: public void connect(boolean isGoalie) {
          CommandFactory f = new CommandFactory();
          f.addPlayerInitCommand(teamName, isGoalie);
          initMessage = f.next();
          super.start();
      }
docs: Connects to the server via AbstractUDPClient.
  
  @param isGoalie a boolean.