Typescript Array Includes Python Snake