fix bug of not reseting offense and defense