         if (color.r == 0.5 && color.g == 0.5 && color.b == 0.5)
             color = Color(1, 1, 1);
 
-        light.visible = false;
+        light.enabled = false;
         light.range = 2.0;
         light.color = color;
         light.specularIntensity = 1.0;

            objectNode.position = GetRandomPosition();

        StaticModel@ object = objectNode.CreateComponent("StaticModel");
        object.visible = false;
        objects.Push(object);
    }
    

void EnableLights()
{
    for (uint i = 0; i < lights.length; ++i)
        lights[i].enabled = i < numLights;
}

void EnableObjects()
{
    for (uint i = 0; i < objects.length; ++i)
        objects[i].enabled = i < numObjects;
}

void RandomizePositions()
