adding code to handle objects in rooms