Fixed Enemy AI to calculate with room connections