Fix checking snake crashing