wager is now functional but has some bugs.