AI
 - Fixed some issues with declarations.

CardManager
 - Fixed some validations.