Yes this works for single elements and I can use the same idea to remove the event listener from the last space clicked. But as Im using forEach it wont target all the spaces
Edit:
To remove a listener the signature must be the same, and the callback function used inside of addEventListener must exist to be referenced later on inside removeEventListener.
Hmm I suppose I could have been clearer, I think its best I just share all the code, as I believe your solution wont work for me,
I want it so after a game has been won squares cant be clicked
The forEach method is getting information from the data of the element that is being clicked. I think I need to go sit down and do something different cause my brain is all fog D:
Yeah it crossed my mind while I was out haha! You wont believe how hard im kicking myself right now cheers man @Implaier sometimes you just need that outside view