Refactor Snake