Fix bug where snake was moving back into itself if keys were pressed too fast