function for tinting bg according to malice level (still need the malice level updated though!)