public void RemoveEntity(cEntityMapper c)
        {
            if (boundingBoxes.ContainsKey(c.key))
            {
                if (boundingBoxes[c.key].ContainsKey(c.worldPos))
                {
                    boundingBoxes[c.key].Remove(c.worldPos);
                }

                if (boundingBoxes[c.key].Count == 0)
                {
                    boundingBoxes.Remove(c.key);
                }
            }
        }
 public void UpdateEntity(cEntityMapper c)
 {
     if (boundingBoxes.ContainsKey(c.key))
     {
         if (!boundingBoxes[c.key].ContainsKey(c.worldPos))
         {
             boundingBoxes[c.key].Add(c.worldPos, c);
         }
     }
     else
     {
         boundingBoxes.Add(c.key, new Dictionary <Vector2, cEntityMapper>());
         boundingBoxes[c.key].Add(c.worldPos, c);
     }
 }