fixed timer, check for attacking faciton in gui tpoo