The Stock Market as a Game: An Agent Based Approach to Trading in Stocks