moved pause/resume button to ScriptWindow and modified the
implementation in GameModel so that it works correctly.