moved private methods from the controller to the wagers model