def draw(alive):
    t.clear()
    t.goto(bird.x, bird.y)
    if alive:
        t.dot(13, 'green')
    else:
        t.dot(13, 'red')
    for ball in balls:
        t.goto(ball.x, ball.y)
        t.dot(20, '#862d2d')
    t.update()
def draw(alive):
    t.clear()
    t.goto(bird.x, bird.y)
    if alive:
        t.dot(13, 'green')
    else:
        t.dot(13, 'red')
    for ball in balls:
        t.goto(ball.x, ball.y)
        t.dot(20, '#862d2d')
    t.update()