When using 'Greenfoot.playSound', you can't stop it. Create a GreenfootSound object in the active world and save a reference to it. Then you can use methods like 'playLoop' and 'stop' on it. See the GreenfootSound API for a list of all possible methods.