I need to object 1 placed on position copy of the object 2. Only one copy that corresponds to the condition (local variable). Doing inventory on the array. With an array of all okay, works as it should, but the position of the object's something strange going on. I turns out that the object is placed on a copy of randomly while repeatedly copying.