Simulated stock trading system Java