Created  snakeControlView() class.