Use the arrow keys to turn left and right. Eat rats to get points and grow longer. Don't run into a wall!
Important things to note: * Movement happens at a set pace. Pressing a direction only affects the move that happens at the next interval. This is done by recording the turn amount in a variable. * Because the snake head moves at the same time the body clone is created, we need to set variables for the body segment position or else the clone gets created at the head position, not behind the head. Still to be done: * Don't allow the snake to run into itself.