The inventory array variable is a copy of the player inventory. Not a reference.