added players controller and applied json endpoint