added the betting portion here