Update path when enemy is stuck.