Changed class Room from idx based to pointer based.