init snake when ended