here is an example of my code in which for the swap I made a cut function.
this works fine, and deletes the object in the array + stores it in "store"