private void carridgeAlliesRight()//executes the preceding function on the other enemies
{
List allies = getWorld().getObjects(Enemy1.class);//list of all the other enemies
Iterator i = allies.iterator();//create an iterator in that list
while(i.hasNext()) {//if theres more enemies to move
Enemy1 a = (Enemy1) i.next();//put the enemy into a variable
if ( a != this) {//if they arent us (cuz we all ready moved)
a.carridgeRight();//move them down
a.setLocation(a.getX(), a.getY());
a.shouldMove = 0;
a.movetimer = 0;
if (getImage() != a.getImage()) {
setImage(a.getImage());
}
}
}
}

