def reset():
    global frame
    global game
    global jump
    global jump_blocked
    global cloud_speed
    global game_speed
    global game_time
    if (game == 2):
        frame = 0
        game = 0
        jump = 0
        jump_blocked = 1
        cloud_speed = 2
        game_speed = 8
        game_time = 0
        player.pos = (100, 484)
        clouds[0].pos = (200, 200)
        clouds[1].pos = (400, 300)
        clouds[2].pos = (600, 200)
        clouds[3].pos = (800, 300)
        obstacles[0].pos = (random.randint(900, 1000), 495)
        obstacles[1].pos = (random.randint(1200, 1500), 495)
        obstacles[2].pos = (random.randint(1500, 2000), 495)
        clock.unschedule(change_difficulty_level)
        clock.schedule_interval(change_difficulty_level, 20)
def reset():
    global frame
    global game
    global jump
    global jump_blocked
    global cloud_speed
    global game_speed
    global game_time
    if (game == 2):
        frame = 0
        game = 0
        jump = 0
        jump_blocked = 1
        cloud_speed = 2
        game_speed = 8
        game_time = 0
        player.pos = (100, 484)
        clouds[0].pos = (200, 200)
        clouds[1].pos = (400, 300)
        clouds[2].pos = (600, 200)
        clouds[3].pos = (800, 300)
        obstacles[0].pos = (random.randint(900, 1000), 495)
        obstacles[1].pos = (random.randint(1200, 1500), 495)
        obstacles[2].pos = (random.randint(1500, 2000), 495)
        clock.unschedule(change_difficulty_level)
        clock.schedule_interval(change_difficulty_level, 20)