I'm working on a snake game myself I've actually found a few different solutions to this problem does the snake use a timer to detect when to move
However I just tried the game and it seems fine to me