new, refactored version of snake (v1)