change snake animation with setTimeout instead of requestanimationFrame