public void PrintBoxScoreToFile(String filename)
    {
	try {
	    PrintWriter pw = new PrintWriter(filename, "UTF-8");
	    for (AtBat ab : plays.container){
		if (ab.Top()){
		    pw.println(away.id);
		}
		else{
		    pw.println(home.id);
		}
		Player batter = GetPlayer(ab.batter);
		if (batter == null){
		    System.out.println(ab.batter);
		}

		Player pitcher = GetPlayer(ab.pitcher);

		if (pitcher == null){
		    System.out.println(ab.pitcher);
		}
		pw.println(batter.FullName());
		pw.println(pitcher.FullName());
		pw.println(ab.action);
		for (Event e : ab.events) {
		    if (e.equals(ab.events.lastElement()) ||
			e.desc.indexOf("With") == 0){			
			pw.println(e.desc);
			e.after.PrintToFile(pw);
		    }
		}
	    }	    
	    pw.close();
	} catch (Exception e) {
	    System.out.println(e);
	}

    }