refactoring betControler :P :P :P :P