Added helper functions to find maximum bet and check for end of round