=added bet functionality to controller