/// <summary>
        /// Gets the list of games.
        /// </summary>
        public void GetListOfGames()
        {
            IList <string> gamesList = model.GetGamesList();

            //Convert the games names list to JSon array.
            string gamesListInJsonFormat =
                JsonConvert.SerializeObject(gamesList);

            //Send the list to the client.
            Clients.Client(Context.ConnectionId)
            .gotListOfGames(gamesListInJsonFormat);
        }