fixed bug when moving towards an enemy if you died