refactor with classes, added betting, bonus features