import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;

/**
 * Write a description of class MyWorld here.
 *  
 * @author (your name) 
 * @version (a version number or a date)
 */
public class PirateWorld extends World
{

    Button startGame;
    Pirates pirate;
    Place currentPlace;
    Life pirateBoat;
    Message message;

    public PirateWorld()
    {    
        // Create a new world with 600x400 cells with a cell size of 1x1 pixels.
        super(1500  , 880   , 1);
        setWelcomeScreen(); 

        message = new Message();
    }

    public void setWelcomeScreen(){
        startGame = new StartGame();
        addObject(startGame, 1300,700);       

    }

    public void setPlace(Place place)
    {
        if(this.currentPlace != null){
            removeObject(this.currentPlace);
        }
        this.currentPlace = place;
        addObject(currentPlace,0,0);
        currentPlace.draw();
    }

    public void started(){
        // Greenfoot.playSound("sounds/theme.mp3");
    }

    public void setPirate(){
        pirate = new Pirates();
        pirateBoat = new Life();
        pirateBoat.getImage().scale(250,150);
        Greenfoot.delay(10);
        addObject(pirate,50,600);
        pirate.setLife();
    }
    public Message getMessage(){
        return message;
    }

    public Pirates getPirate()
    {
        return pirate;
    }

    public Place getCurrentPlace(){
        return currentPlace;
    }

   
}

@@ -384,16 +384,84 @@
 essage;%0D
+%0A    GreenfootSound sound = new GreenfootSound(%22sounds/theme.mp3%22);%0D
 %0A%0D%0A    p
@@ -1114,49 +1114,83 @@
     
-// Greenfoot.playSound(%22sounds/theme.mp3%22
+sound.play();%0D%0A    %7D%0D%0A    %0D%0A    public void stopped()%7B%0D%0A        sound.stop(
 );%0D%0A
@@ -1190,32 +1190,34 @@
 op();%0D%0A    %7D%0D%0A%0D%0A
+%0D%0A
     public void 
@@ -1226,24 +1226,47 @@
 tPirate()%7B%0D%0A
+        sound.stop();%0D%0A
         pira

Update PirateWorld.java