add snake pieces, change the way direction is set
use a global variable for the snake object