How to Make a Robot Use Theory of Mind