def check_collision():
    global game
    global jump_unblocked
    if (game == 1):
        for i in obstacles:
            if player.collidepoint(i.x, i.y):
                game = 2
                sounds.jingles_end.play()
                jump_unblocked = 1
                clock.schedule_unique(unblock_game, 2.0)
def check_collision():
    global game
    global jump_unblocked
    if (game == 1):
        for i in obstacles:
            if player.collidepoint(i.x, i.y):
                game = 2
                sounds.jingles_end.play()
                jump_unblocked = 1
                clock.schedule_unique(unblock_game, 2.0)