implemented the user and game part of the api