Chat refactored (and minor bug fixed) and boss html fixed.