I'd define a length var, then use a while or for loop to draw the snake at the right length.