added some todos and also expend energy when attacking