I got the credits working, and it returns to the main menu after the credits. However, the restart function in frame doesn't work properly, so you can't play the game again after you return to the main menu (or at least it has a lot of problems if you try to).