Added moonlight.
Added workaround for bug where entities are tinted green.
Did some refactoring.