/**
* If the Rabit is at the edge of the world or is hit by a Laser blast
* it will be removed and it will create a new Rabbit. Also randomly
* creates rabbits
*/
public void makeRabbit()
{
World world = getWorld();
Rabbit new = new Rabbit(counter);
int worldHeight = world.getHeight();
int worldWidth = world.getWidth();
if(Greenfoot.getRandomNumber(9999) < 9) {
world.addObject(newRabbit, worldWidth, Greenfoot.getRandomNumber(worldHeight));
}
}
