commit 2: implement game loop and movement abilities for snake