
while exists ( Pattern("1381753192390.png").similar(0.60) ): 
    click( Pattern("1381753192390.png").similar(0.62) )
    if exists ( Pattern("GoldCookie.png").similar(0.60) ):
        click (Pattern("GoldCookie.png").similar(0.60) )