commented lights and doors source code