An agent based model of the Nash demand game in regular lattices