Thanks to everyone who replied! I actually managed to figure out my original problem on my own, but I now have another: I need to figure out how to delete objects at the end of the game. (There is a preexisting code for such a thing already there, but it isn't working.)
I'll be attaching the code this time around.
CarbonAde Code.doc