def move_obstacle():
    global game_speed
    global game
    if (game == 1):
        for i in range(len(obstacles)):
            obstacles[i].x -= game_speed
            if ((obstacles[i].x + 35) < 0):
                obstacles[i].x = random.randint(900, 1500)
                for j in range(0, len(obstacles)):
                    if ((j != i) and abs(((obstacles[i].x - obstacles[j].x) < 300))):
                        obstacles[i].x += 400
def move_obstacle():
    global game_speed
    global game
    if (game == 1):
        for i in range(len(obstacles)):
            obstacles[i].x -= game_speed
            if ((obstacles[i].x + 35) < 0):
                obstacles[i].x = random.randint(900, 1500)
                for j in range(0, len(obstacles)):
                    if ((j != i) and abs(((obstacles[i].x - obstacles[j].x) < 300))):
                        obstacles[i].x += 400