import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
 * Write a description of class evil here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class evil extends Actor
{
    /**
     * Act - do whatever the evil wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act()
    {
      setLocation(getX()+10,getY());
        if(getX()==1119)
    {
        getWorld().removeObject(this);
    }
    Actor k = getOneIntersectingObject(ld.class);
     if(k !=null){
    getWorld().removeObject(this);
}
}
}
   
   
             
          
        

