how to add a replay button

Hi, I would like to add a replay button in my game, and I tried using this code because I want to remove the current scene:

local redbutton = display.newImage ("replay.png", 560, 0)  
  
local function pressRed (event)  
if event.phase == "ended" then  
audio.stop( Music )  
storyboard.removeScene("game")  
director:changeScene ("game")  
end  
end  
  
redbutton:addEventListener ("touch", pressRed)  

the problem is that the current scene isn’t removed, how can I fix it? thanks! [import]uid: 129238 topic_id: 25976 reply_id: 325976[/import]

You have code for storyboard and Director? [import]uid: 52491 topic_id: 25976 reply_id: 105519[/import]