Fixed some logic faults, now it theres something wrong with vector to light code