added error handling when user has 0 games