Only one enemy is moving

I have set an X velocity for enemies, but only one of them moves. Could someone please explain why?

function preload() {

game.load.baseURL = 'joshmuszka67.wixsite.com/gamesprites';
game.load.crossOrigin = 'anonymous';

game.load.image("background", "https://static.wixstatic.com/media/aa8ebd_a3ab2ab9b1eb4926adeedab556f2a5cf~mv2_d_4096_3904_s_4_2.png/v1/fill/w_638,h_604,al_c,q_85,usm_0.66_1.00_0.01/updated%20scenery%204-1_png.webp");

game.load.image('player', 'https://static.wixstatic.com/media/aa8ebd_7a550c17a07b4dd1a743e556cfe04000~mv2.png/v1/fill/w_68,h_68,al_c,lg_1,q_80/Player-1_png%20(2).webp');

game.load.image('platform', 'https://static.wixstatic.com/media/aa8ebd_15f9bce00f524d2a98ccde509dece027~mv2.png/v1/fill/w_638,h_60,al_c,q_80,usm_0.66_1.00_0.01/upscaled_Foreground-1_png%20(1).webp');

game.load.image('enemy1', 'https://static.wixstatic.com/media/aa8ebd_2447d920490847648a736253bd76e083~mv2.gif');

game.load.spritesheet('enemy2', 'https://static.wixstatic.com/media/aa8ebd_40b6bdb10a224105898111119799c41c~mv2.png/v1/fill/w_136,h_272,al_c,lg_1,q_80/Enemy%202.webp', 128, 64);

game.load.spritesheet('enemyii', '<img src="https://static.wixstatic.com/media/aa8ebd_648ca2b0d9d1414c8a754ed18c80e13b~mv2.gif" alt="Enemy 2 (1).gif"/>')

game.load.spritesheet('walk', "https://static.wixstatic.com/media/aa8ebd_72560045f4e94f46b29b17c07d0104f2~mv2.png/v1/fill/w_320,h_64,al_c,q_80/Player%20sprite%20(1).webp", 64, 64);

game.load.image('platform1', 'https://static.wixstatic.com/media/aa8ebd_8b88721a00a9488f94733a5de399d507~mv2.png/v1/fill/w_68,h_34,al_c,lg_1,q_80/upscaled_newplatform1-1_png%20(1).webp');

game.load.image('platform2', 'https://static.wixstatic.com/media/aa8ebd_6898be6bc22c418bbaa2b057b1030c1f~mv2.png/v1/fill/w_136,h_34,al_c,lg_1,q_80/upscaled_newplatform2-1_png.webp');

game.load.image('platform3', 'https://static.wixstatic.com/media/aa8ebd_3f0855eeeea54424a1738e5fb17f1b92~mv2.png/v1/fill/w_204,h_34,al_c,lg_1,q_80/upscaled_newplatform3-1_png.webp');

game.load.image('platform4', 'https://static.wixstatic.com/media/aa8ebd_25b09e09171b434e9407b54532a1e477~mv2.png/v1/fill/w_272,h_34,al_c,lg_1,q_80/upscaled_newplatform4-1_png.webp');

game.load.image('platform5', 'https://static.wixstatic.com/media/aa8ebd_d47e63152e144ababfb0b6cf0e45c6b7~mv2.png/v1/fill/w_340,h_34,al_c,lg_1,q_80/upscaled_newplatform5-1_png.webp');

game.load.image('foreground', 'https://static.wixstatic.com/media/aa8ebd_efa0fa99c51f4e43ab80dba2fba4065f~mv2.png/v1/fill/w_638,h_359,al_c,q_80,usm_0.66_1.00_0.01/Foreground-1_png%20(1).webp');

game.load.spritesheet('enemya', 'https://static.wixstatic.com/media/aa8ebd_7912694b6be44081a43e17a7cea9f510~mv2.png/v1/fill/w_34,h_136,al_c,lg_1,q_80/Enemy%201.webp', 32, 32);

game.load.spritesheet('back', 'https://static.wixstatic.com/media/aa8ebd_17cb8f669db244e39cda0473e12221b8~mv2.png/v1/fill/w_340,h_68,al_c,lg_1,q_80/Player%20sprite%20left.webp', 64, 64);

game.load.spritesheet('allanimations', 'https://static.wixstatic.com/media/aa8ebd_2bc882de71aa420b85e055f019ae8fb2~mv2.png/v1/fill/w_68,h_680,al_c,lg_1,q_80/all%20player%20animations.webp');

}
var player;
var platforms;
var cursors;
var jumpButton;
var background;
var enemy1;
var enemy2;
var health;
var platform1;
var platform2;
var platform3;
var platform4;
var platform5;
var emerald;
var hearts;
var heart;
var ladder;
var walk;
var back;
var allanimations;
var enemyii;
var enemy1b;
var enemies1;

function create() {

//World Boundaries, they keep you safe!
game.world.setBounds(0, 0, 99999999999999999999, 547);

//Background Lives Here :)
background = game.add.tileSprite(0, 0, 9999999999, 576, "background");

platforms = game.add.physicsGroup();
        platforms.create(320, 440, 'platform1');
        platforms.create(520, 370, 'platform5');
        platforms.create(100, 100, 'platform2');
    platforms.setAll('body.immovable', true);
    
//Player Spawns here
player = game.add.sprite(50, 512, 'walk');
//player.frame = 0;
player.animations.add('animationwalk', [1,2,3,4], 9, true);
game.physics.arcade.enable(player);

player.body.collideWorldBounds = true;
player.body.gravity.y = 2000;

//Enemy spawns here
enemy1 = game.add.sprite(148, 68, ‘enemy1’);
game.physics.arcade.enable(enemy1);
enemy1.body.collideWorldBounds = true;
enemy1.body.gravity.y = 2000;

enemy1 = game.add.sprite(650, 515, 'enemy1')
    game.physics.arcade.enable(enemy1);
    enemy1.body.collideWorldBounds = true;
    enemy1.body.gravity.y = 2000;


cursors = game.input.keyboard.createCursorKeys();
jumpButton = game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR);

game.camera.follow(player);

}

function update () {
game.physics.arcade.collide(player, platforms);

player.body.velocity.x = 0;

enemy1.body.velocity.x = -40;
enemy1.body.velocity.x = -40;

if (cursors.left.isDown)
{
    player.body.velocity.x = -180;
    player.animations.play('animationwalk');

}
else if (cursors.right.isDown)
{
    player.body.velocity.x = 180;
    player.animations.play('animationwalk');
}
else if (cursors.right.isUp)
{
    player.animations.stop('animationwalk');
    player.frame = 0;
}

 else if (cursors.left.isUp)
{
    player.animations.stop('animationwalk');
    player.frame = 0;
}
if (jumpButton.isDown && (player.body.onFloor() || player.body.touching.down))
{
    player.body.velocity.y = -740;
    
}

}

function worldMovementControls() {
if (!this.camera.atlimit.x) {
background.tilePosition.x -= (player.body.velocity.y * this.physicsElapsed);
}

}

function render() {

}

Is this repeat intentional? Since you have 2 enemies with the same variable name, only one of them will move, as both will be interpreted as the same body. I suggest calling the second enemy enemy2