some little rework in snake_move