The game is working.  Need to tweak the algorithm though.