fix troops

replace is_int with is_numeric
and check with % 1 == 0