tried fixing collectBets(), not fixed