Simon Game - setTimeout is not getting cleared with clearTimeout


When I click on “off” switch I am clearing the setTimeout function and also returning “return ;”
However, this is not clearing settimeout and the game keeps continuing.
Any help is appreciated. Thanks