Snake game using arrays