added rudimentary Pollution logic and adapted some of Unchained