Or write "IF X2==X && Y2==Y THEN GOSUB @TAG" instead of "IF TAG>=2 THEN GOSUB @TAG" in line 38. In this case, variable TAG won't be used any more.