Pregunta de entrevista de Symbotic

How would you optimize a game-state checker for a snake game?