fixed the problems after merge
now, snake can move all of his segment.