I'm trying to make a typing game where you have to type the displayed word to defeat the enemy. I'm in the middle of prototyping and Currently I have the enemy in a container with a text file. so if one is deleted the other is destroyed as well. so far I've set up the game to display the random text along with every new enemy created. the part I'm having trouble with is checking to see if the player input is equal to text and then destroying the correct enemy. I've tried using a for each loop but its failing to check if the text entered and the text displayed are equal. What am I doing wrong.