Merged control and menu condition code

The code has been merged, but transference is not fully functioning. Some cleanup is still required.
I'm not sure why there are two nearly identical functions, but objectContainedWithinObject is only called in the old getPossibleInteractions function that I am no longer using.