You could use an instance variable tied to a global one. Each time you create a box add to that global variable and set instance variable of your newly created box to that. Then another global variable to keep track of what is being destroyed. Each time you destroy a box add 1 to that, so next box to be destroyed will be the one with whose instance variable matches that destroyed global variable.
Hope it made sense.