Added Dan Truong's changes - manipulating lights according to level