code: private void assignLocation(PhysicalEntity pe, Glyph g) {
  		// Create compartment -- add this inside the compartment
  		Glyph loc = getCompartment(pe);
  		if (loc != null) {
  			g.setCompartmentRef(loc);
  		}
  	}
docs: /*
  Assigns compartmentRef of the glyph.
  @param pe Related PhysicalEntity
  @param g the glyph