fixed a bug
sometimes the game would freeze if a unit was stuck in enemy territory