Interaction of a free boundary with a diffusion on a plane: analogy with the obstacle problem