fix the compare logic and negative bet bugs.