mainly working version 2, with graphics and betting.