I\'m trying to write a simple snake game with Vanilla JS + HTML + CSS. It works well except for one bug which I am having a very hard time finding the reason behind.
The