Coding Pt.1

Step (2): Let pressing the arrow keys change the variable, direction
Step (3): Let the snake move in the direction that was determined in the step before