Fixed win/lose, fixed error on window close