Bed debugged

should work now, now to update the render.

-isn't compatible with beds being altered by non-beds
-might still have some hidden bugs (will be fleshed out after render
update)