added function to read and store the games.