check whether snake eat itself