Thanks for reporting the issue with it not detecting the win state, the way that is coded did leave me with some concerns and you've confirmed them.
np bro! my game has the same prblm lol.