Memory game more 8 card

Hello

Dear friends. 

Help to solve a problem, or to prompt in what direction to move.

There is a code for memory game with restriction on 8 cards because only the last digit is used.

That it is necessary to add or change that two characters were used, for example “p_12” uses 12 instead of 2

Thanks in advance

if (flips \< 2) then composer.trans.newTransition\_743 = transition.to( self, {alpha=0, time=100, delay=0}) if flipped[1] ~= self then flips = flips + 1; if flips \> 2 then flips = 2 end table.insert(flipped,self) end elseif flips == 2 then flips = flips + 1; if flips \> 2 then flips = 2 end if flipped[1] ~= self then composer.trans.newTransition\_743 = transition.to( self, {alpha=0, time=100, delay=0}) table.insert(flipped,self) if (randList[tonumber(string.sub(string.reverse(flipped[1].name),1,1))] == randList[tonumber(string.sub(string.reverse(flipped[2].name),1,1))]) then flipped[1].x = 5000 flipped[2].x = 5000 flips = 1 flipped = {} else local function hideAgain() composer.trans.newTransition\_898 = transition.to( flipped[1], {alpha=1, time=100, delay=0}) composer.trans.newTransition\_888 = transition.to( flipped[2], {alpha=1, time=100, delay=0}) local function zeroesFlip() flips = 1 flipped = {} end composer.timerStash.timer\_fl = timer.performWithDelay( 100, zeroesFlip, 1 ) end composer.timerStash.timer\_AP = timer.performWithDelay( 200, hideAgain, 1 ) end end end