A one-arm bandit game - AngularJS style!