private void removeComponentsOfEntity(Entity e)
    {
        for (int a = 0; a < componentsByType.size(); ++a)
        {
            Bag<Component> components = componentsByType.get(a);
            
            if (components != null && e.getId() < components.size())
            {
                components.set(e.getId(), null);
            }
        }
    }