Created player controller and directive