'for each array' is not looping through the array, this is to pick each instance of invarray of which you have 1 so it is not useful here. You are probably looking for 'for each element' which is a loop on the array object, but the system one I mentioned can also work well. You were never looping the array that's why all your objects are set to 0 position.
"Or I'm just overthrowing this at this point and should just delete the 6 lines of code and start over with a simply system or a suggested replacement??"
- Yes, keep it simple like I described above. You were never looping the array so first do this and see where your game is at, then you can come with questions from there when you are able to pick up an item and add it to the next empty slot.