void InitBoard()
 {
     for (int i = 0; i < grid.Width / SIZE; i++)
     {
         ColumnDefinition columnDefinitions = new ColumnDefinition();
         columnDefinitions.Width = new GridLength(SIZE);
         grid.ColumnDefinitions.Add(columnDefinitions);
     }
     for(int j = 0; j < grid.Height / SIZE; j++)
     {
         RowDefinition rowDefinitions = new RowDefinition();
         rowDefinitions.Height = new GridLength(SIZE);
         grid.RowDefinitions.Add(rowDefinitions);
     }
     _snake = new MySnake();
 }
 public MainWindowViewModel()
 {
     Snake = new MySnake();
     InitTimer();
 }