public List<Unit> getAllUnits()
    {// RETRIEVES A LIST OF ALL UNITS IN SORTED ORDER
	updateListeners();
	List<Unit> allUnits = new ArrayList<Unit>();
	
	allUnits.addAll(m_players);
	allUnits.addAll(m_enemies);
	
	Collections.sort(allUnits, UnitComparator.getInstance());
	;
	// System.out.println(allUnits);
	
	return allUnits;
    }