snake head undefined