Just one bug left

so color beds work except for updating the render of the adjacent bed,
when ever a change occurs

I also made the code use the pairID instead of pairName for
calculations. should be faster and more stable.