Agent-based model of simulated stock market