public void act()
    {
        Greenfoot.setSpeed(50);

        if(canMove())
        {
            move();
            Random randomobj = new Random();
            int randnum = randomobj.nextInt(10);
        }
        else 
        {
            turnWest();
        }

        if (touchingBullet())
        {      
            Lvl2BkgDesert myWorld = (Lvl2BkgDesert)getWorld();
            int n = myWorld.GetAvailDarts();

            if (n <= 1) 
            {
                getWorld().addObject(new DemonExplosion(), getWorld().getWidth()/2, getWorld().getHeight()/2);
                GameOver = true;
                getWorld().removeObject(this);
            }

            //Remove Bullet and Demon objects;
            Actor d = null;
            List<Actor> mylist = (List<Actor>) getObjectsInRange(20,Darts.class);       

            if ( ! mylist.isEmpty())
            {
                d = getOneIntersectingObject(Darts.class);        
            }

            if (d != null)
            {
                GreenfootImage image = getImage();  
                image.scale(image.getWidth() - 8, image.getHeight() - 10);  
                setImage(image);
                Greenfoot.playSound("ping.wav");

                d.setLocation(300,getWorld().getHeight()-20);

                getWorld().removeObject(d);
                getWorld().addObject(new DemonExplosionMulti(), getX(), getY());     

                if ((image.getHeight() <= 50)) 
                {
                    getWorld().addObject(new Congratulation(), getWorld().getWidth()/2, getWorld().getHeight()/2);
                    GameOver = true;
                    getWorld().removeObject(this);
                }
                else
                {
                    //Explosion because of hit       
                    getWorld().addObject(new DemonExplosionMulti(), getX(), getY());

                    //Change location to random after hit
                    setLocation(50+Greenfoot.getRandomNumber(700), 200+Greenfoot.getRandomNumber(300));
                }

            }
        } 
    }