def move():
    bird.y -= 5
    for ball in balls:
        ball.x -= 3
    if (randrange(10) == 0):
        y = randrange((- 199), 199)
        ball = vector(199, y)
        balls.append(ball)
    while ((len(balls) > 0) and (not inside(balls[0]))):
        balls.pop(0)
    if (not inside(bird)):
        draw(False)
        return
    for ball in balls:
        if (abs((ball - bird)) < 15):
            draw(False)
            return
    draw(True)
    t.ontimer(move, 50)
def move():
    bird.y -= 5
    for ball in balls:
        ball.x -= 3
    if (randrange(10) == 0):
        y = randrange((- 199), 199)
        ball = vector(199, y)
        balls.append(ball)
    while ((len(balls) > 0) and (not inside(balls[0]))):
        balls.pop(0)
    if (not inside(bird)):
        draw(False)
        return
    for ball in balls:
        if (abs((ball - bird)) < 15):
            draw(False)
            return
    draw(True)
    t.ontimer(move, 50)