$a = [] $a.push($game_variables[1]/10) $a.push($game_variables[1]%10) if $a.include?(1)and $a.include?(2) $game_variables[2]+=1 end