Econophysics of Agent-Based Models