Working on issues with list iteration when building list of spaces index numbers, in order to pop() them later.