rewrite zhe snake,becouse old code is too simple.