The game glitches and freezes completely whenever the first two animations in the naive route. the error mentions java script.