Reworked room absorbtion code