broke code up into three modules.  Created game engine class to run the game.