this is my code when my program ends
What code must I add so that the program will only end when an actor touches the bottom of the screen?
removeObjects(getObjects(A.class)); //this removes all actors from world
GreenfootImage bg = getBackground();
setBackground("Gameover.png");
Greenfoot.stop(); //this stops the scenario
