Using Arrays in the snake game