correct state transitions for enemies