public static void main(String args[]) {
    String players[] = new String[4];
    for (int i = 1; i <= 4; i++) {
      players[i-1] = "P" + i;
    }
    StringBuilder playbackString = new StringBuilder();
    InputStreamReader input = new InputStreamReader(System.in);
    BufferedReader reader = new BufferedReader(input);
    String string;
    try {
      while((string = reader.readLine()) != null)
        playbackString.append(string);
    } catch (Exception e) {
      System.err.println("ERROR: game player failed while reading game " +
        "playback string.");
      System.exit(1);
    }
    CLViewer c = new CLViewer(players, playbackString.toString().trim());
    c.show();
  }