Refactored isValidGame to session