Fixed bug in collision detection system

The "dim" variable in AnimatedTexture needed to be adjusted to account
for multiple frames in the same image. Also removed some testing code.