Game Rating - Refactored the angular controller. Moved all the logic to a service which is injected in the controller