update ai, add collision