trying to get enemy core detecting to work