http://www.greenfoot.org/scenarios/11819
please please need help.
if (lives == 0)
{
GameOver gameOver = new GameOver(); // gets local reference to game over world
// the following sets scoreboard in gameover world to the one in poringshoot world
int score = ((PoringShoot)getWorld()).getScoreboard().getScore();
gameOver.getScoreboard().updateScore(score);
Greenfoot.setWorld(gameOver); // sets the game over world as the new active world
}if (Greenfoot.mouseClicked(this))
{
PoringShoot poringShoot = ((PoringShoot)getWorld();
poringShoot.removeObject(this);
// adjust lives
}