This is just updating the text every time it finds an object that matches the condition so all you'll ever see is the last one displayed in text. I guess you could push everything to an array if this is just for debug purposes, that's what I prefer to do!