The function checks if the string of envelopes is empty or if the user hits Escape, but it seems to only work with Escape. It will still show the correct win/lose screen based on if the envelopes were collected, but I have to hit "Escape" to get there. I am currently using the .remove for the envelope string.