Added resources
Added a class to check patterns in cards