1.2-function in .h file - attack and card