public MapManager(int size, MapTextures mapTex, CowPiece head, Game1 game)
 {
     this.size = size;
     map = new Square[size,size];
     this.grassTexture = mapTex.grassTexture;
     this.hedgeTexture = mapTex.hedgeTexture;
     this.hedgeVertTexture = mapTex.hedgeVertTexture;
     this.hedgeCornerTexturetl = mapTex.hedgeCornerTexturetl;
     this.hedgeCornerTexturetr = mapTex.hedgeCornerTexturetr;
     this.hedgeCornerTexturebl = mapTex.hedgeCornerTexturebl;
     this.hedgeCornerTexturebr = mapTex.hedgeCornerTexturebr;
     this.hedgeCrossTexture = mapTex.hedgeCrossTexture;
     this.foodTexture = mapTex.foodTexture;
     headPiece = head;
     this.game = game;
     createMap();
 }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            MapTextures mapTexs = new MapTextures();
            Texture2D headTexture = Content.Load<Texture2D>("drawing//Cow_Head");
            Texture2D mainTexture = Content.Load<Texture2D>("drawing//Cow_Middle");
            Texture2D tailTexture = Content.Load<Texture2D>("drawing//Cow_Bum");
            mapTexs.grassTexture = Content.Load<Texture2D>("drawing//grass");
            mapTexs.hedgeTexture = Content.Load<Texture2D>("drawing//hedge");
            mapTexs.hedgeVertTexture = Content.Load<Texture2D>("drawing/hedge_v");
            mapTexs.foodTexture = Content.Load<Texture2D>("drawing//food");
            mapTexs.hedgeCornerTexturetl = Content.Load<Texture2D>("drawing//hedge_corner_tl");
            mapTexs.hedgeCornerTexturetr = Content.Load<Texture2D>("drawing//hedge_corner_tr");
            mapTexs.hedgeCornerTexturebl = Content.Load<Texture2D>("drawing//hedge_corner_bl");
            mapTexs.hedgeCornerTexturebr = Content.Load<Texture2D>("drawing//hedge_corner_br");
            mapTexs.hedgeCrossTexture = Content.Load<Texture2D>("drawing//hedge_cross");
            mapTexs.foodTexture = Content.Load<Texture2D>("drawing//mushroom");
            font = Content.Load<SpriteFont>("DefaultFont");

            head = new HeadPiece(headTexture, mainTexture, tailTexture, this);
            CowPiece tail = new CowPiece(mainTexture, tailTexture, this);
            CowPiece a = new CowPiece(mainTexture, tailTexture, this);
            CowPiece b = new CowPiece(mainTexture, tailTexture, this);
            CowPiece c = new CowPiece(mainTexture, tailTexture, this);
            CowPiece d = new CowPiece(mainTexture, tailTexture, this);
            head.AttachPiece(tail);
            /*head.AttachPiece(a);
            head.AttachPiece(b);
            head.AttachPiece(c);
            head.AttachPiece(d);*/

            mapManager = new MapManager(40, mapTexs, head, this);

            // TODO: use this.Content to load your game content here
        }