Refactor move snake