fixed bug in listing and dealing functions, create new func; betting.