Come line bet function working. Also clean up some code.