refactoring bet update state