Implemented PutCard logic and basics for rules. - amend: added rule constants.