Added functionality to check if an item or npc is in a room by checking if their name exists.