private void DestroyGameItem(Enums.ObjectsID ObjectID, ref List <GameObject> GameObjectList)
 {
     for (int i = 0; i < GameObjectList.Count(); i++)
     {
         if (GameObjectList[i].objectID == (int)ObjectID)
         {
             GameObjectList.RemoveAt(i);
         }
     }
 }
        private void createNewPlatform(ref List <GameObject> gameObjectList, string textureName, Matrix transformationMatrix, GraphicsDevice graphics, Dictionary <string, Texture2D> platformTextures)
        {
            Vector2 transformedPos = Vector2.Transform(new Vector2(1000, 200), Matrix.Invert(transformationMatrix));

            string temp;

            for (int i = 1; i <= 108; i++)
            {
                temp = "tileBrown_01";
                if (i >= 1 && i <= 27)
                {
                    if (i < 10)
                    {
                        temp = "tileBrown_0" + i;
                    }
                    else
                    {
                        temp = "tileBrown_" + i;
                    }
                }
                if (i > 27 && i <= 54)
                {
                    if (i < 37)
                    {
                        temp = "tileYellow_0" + (i - 27);
                    }
                    else
                    {
                        temp = "tileYellow_" + (i - 27);
                    }
                }
                if (i > 54 && i <= 81)
                {
                    if (i < 65)
                    {
                        temp = "tileBlue_0" + (i - 54);
                    }
                    else
                    {
                        temp = "tileBlue_" + (i - 54);
                    }
                }
                if (i > 81 && i <= 108)
                {
                    if (i < 91)
                    {
                        temp = "tileGreen_0" + (i - 81);
                    }
                    else
                    {
                        temp = "tileGreen_" + (i - 81);
                    }
                }
                Enums.ObjectsID tempObjectID = Enums.ObjectsID.tileBrown_01;
                if (textureName == temp)
                {
                    if (textureName == "tileBrown_01" || textureName == "tileYellow_01" || textureName == "tileBlue_01" || textureName == "tileGreen_01")
                    {
                        gameObjectList.Add(new Platform(platformTextures[textureName], new Vector2(64, 64), transformedPos, (int)Enums.ObjectsID.PLATFORM, (int)tempObjectID, false));
                    }

                    gameObjectList.Add(new Platform(platformTextures[textureName], new Vector2(64, 64), transformedPos, (int)Enums.ObjectsID.PLATFORM, (int)tempObjectID, false));
                }
            }
        }