Managed a fix a few bugs in my code which now enables the game to detect when an enemy has moved out of the players field of view and is now considered "dead".