Refactoring Snake Mess