Implementing pingpong scoring app in AngularJS