made enemy speed dependent on speed variable