Mathematical Modelling of Theory of Mind