refactoring of parseLight printing
resolved off by one error with lights