I'm quitting now. The recursive function does not work, gets halfway through and then cannot pop from the stack