I can't understand what's going wrong
global variable indice starts out as 0 and you never change it.
But you use it as an index in a select item from list block.
AI2 lists start at item 1, not 0.
That is the limit to how I can help you, without learning your language.