[update] the init of snake no longer hard coded, a new function will generate the coord and direction of new snake