Adds code to pass test_is_enemy.