Saves game to database and passes game object back to browser.