new algorithm halloweenparty