Added calculating earned values to bet history