Created factory for position data
Added states as Angular constants
Refactored tests
Refactored playService from factory to service
Corrected use of factory
Corrected the use of constant STATE