implemented on exit action
reimplemented win dialog, added cheat menu item for debug