First thing I notice is this:
if (night = true)
Remember that = and == are not the same thing. You are assigning night every time you do this, not testing it.
↧