Using arrays, "is pending kill" error after i have removed element :/

At first i thought there was a problem with the logic attached to the “Q” key, but changing the order of the remove + destroy nodes just causes everything to break, and the orbitals to hang in the air and stop working :confused: