Added betting
Fixed some bugs