Let N\mathbb{N} be the set of positive integers. Determine all functions g ⁣:NNg\colon \mathbb{N}\to \mathbb{N} such that (g(m)+n)(m+g(n))\left(g (m) + n\right) \left(m + g (n)\right) is a perfect square for all m,nNm, n \in \mathbb{N}.