private static void fillLineWith(Case[] line, Case sample)
 {
     for (int i = 0; i < line.Length; i++)
     {
         line[i] = new Case(sample.color, sample.thereIsAStar, sample.thereIsARobo);
     }
 }
 private static Boolean isValidCoordinate(int x, int y, Case[][] map)
 {
     if (x >= 0 && x < map.Length)
         if (y >= 0 && y < map[0].Length)
             return true;
     return false;
 }
        public Boolean resize(int heigth, int length)
        {
            Case sample = new Case(Color.BLACK, false, false);

            try
            {
                this.map = new Case[heigth][];
                for (int i = 0; i < heigth; i++)
                {
                    this.map[i] = new Case[length];
                    fillLineWith(this.map[i], sample);
                }
            }
            catch (Exception e)
            {
                return false;
            }
            return true;
        }