create attack,protect and healing function