Added error handling for empty gamelist