Re-implement lighting system.
First attempt to add lighting to onRails state