added rules engine and rules for single card and pairs