settleBets rewrited