improved internal handling of "game over" state