added mrblack's fix for rounding bet size.