change moveSnake to user time.Ticker instead of time.Sleep