improved bet logic